[PATCH] x86-64: Account for module percpu space separately from kernel percpu
authorJeremy Fitzhardinge <jeremy@goop.org>
Wed, 2 May 2007 17:27:11 +0000 (19:27 +0200)
committerAndi Kleen <andi@basil.nowhere.org>
Wed, 2 May 2007 17:27:11 +0000 (19:27 +0200)
commitb00742d399513a4100c24cc2accefdc1bb1e0b15
tree57551a08eb218ed4aadb0a90806f33826df27f8a
parentbbba11c35baaad3f70f32e185a2c1d40d7901fe9
[PATCH] x86-64: Account for module percpu space separately from kernel percpu

Rather than using a single constant PERCPU_ENOUGH_ROOM, compute it as
the sum of kernel_percpu + PERCPU_MODULE_RESERVE.  This is now common
to all architectures; if an architecture wants to set
PERCPU_ENOUGH_ROOM to something special, then it may do so (ia64 is
the only one which does).

Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Cc: Andi Kleen <ak@suse.de>
include/asm-alpha/percpu.h
include/asm-sparc64/percpu.h
include/asm-x86_64/percpu.h
include/linux/percpu.h
kernel/module.c