* [PATCH 3/3] percpu: fix percpu accessors to potentially !cpu_possible() cpus: x86 voyager
@ 2008-11-21 10:41 Rusty Russell
0 siblings, 0 replies; only message in thread
From: Rusty Russell @ 2008-11-21 10:41 UTC (permalink / raw)
To: James Bottomley
Cc: Mike Travis, Ingo Molnar, linux-kernel, Ingo Molnar,
James Bottomley
Impact: CPU iterator bugfixes
Percpu areas are only allocated for possible cpus. In general, you
shouldn't access random cpu's percpu areas.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Mike Travis <travis@sgi.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
---
arch/x86/mach-voyager/voyager_smp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- test-compile.orig/arch/x86/mach-voyager/voyager_smp.c
+++ test-compile/arch/x86/mach-voyager/voyager_smp.c
@@ -1223,7 +1223,7 @@ int setup_profiling_timer(unsigned int m
* new values until the next timer interrupt in which they do process
* accounting.
*/
- for (i = 0; i < NR_CPUS; ++i)
+ for_each_possible_cpu(i)
per_cpu(prof_multiplier, i) = multiplier;
return 0;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-11-21 10:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-21 10:41 [PATCH 3/3] percpu: fix percpu accessors to potentially !cpu_possible() cpus: x86 voyager Rusty Russell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox