-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PATCH] x86-64: Account for module percpu space separately from kerne…
…l 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>
- Loading branch information
Jeremy Fitzhardinge
authored and
Andi Kleen
committed
May 2, 2007
1 parent
bbba11c
commit b00742d
Showing
5 changed files
with
9 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,6 @@ | ||
#ifndef __ALPHA_PERCPU_H | ||
#define __ALPHA_PERCPU_H | ||
|
||
/* | ||
* Increase the per cpu area for Alpha so that | ||
* modules using percpu area can load. | ||
*/ | ||
#ifdef CONFIG_MODULES | ||
# define PERCPU_MODULE_RESERVE 8192 | ||
#else | ||
# define PERCPU_MODULE_RESERVE 0 | ||
#endif | ||
|
||
#define PERCPU_ENOUGH_ROOM \ | ||
(ALIGN(__per_cpu_end - __per_cpu_start, SMP_CACHE_BYTES) + \ | ||
PERCPU_MODULE_RESERVE) | ||
|
||
#include <asm-generic/percpu.h> | ||
|
||
#endif /* __ALPHA_PERCPU_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters