Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44642
b: refs/heads/master
c: 5a08900
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Dec 17, 2006
1 parent 396eca4 commit 93329d4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9bc83dcff8fab1f22048c8f82deb3198ec44d53f
refs/heads/master: 5a089006bf8b59f6610de11a857854d8f8730658
7 changes: 2 additions & 5 deletions trunk/arch/sparc64/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1447,11 +1447,8 @@ void __init setup_per_cpu_areas(void)
char *ptr;

/* Copy section for each CPU (we discard the original) */
goal = ALIGN(__per_cpu_end - __per_cpu_start, SMP_CACHE_BYTES);
#ifdef CONFIG_MODULES
if (goal < PERCPU_ENOUGH_ROOM)
goal = PERCPU_ENOUGH_ROOM;
#endif
goal = PERCPU_ENOUGH_ROOM;

__per_cpu_shift = 0;
for (size = 1UL; size < goal; size <<= 1UL)
__per_cpu_shift++;
Expand Down
10 changes: 10 additions & 0 deletions trunk/include/asm-sparc64/percpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@

#ifdef CONFIG_SMP

#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)

extern void setup_per_cpu_areas(void);

extern unsigned long __per_cpu_base;
Expand Down

0 comments on commit 93329d4

Please sign in to comment.