diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2008-12-31 23:42:14 (GMT) |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-12-31 23:42:14 (GMT) |
commit | 9e2f913df70b378379a358a44e7d286f7b765e8e (patch) | |
tree | c97316a74bd62fc6829581d9ea9a78e06529d8ac /arch/m32r | |
parent | 6aaa8ce523c7ce954b81b8c0b3e32c8be599af8d (diff) | |
download | linux-fsl-qoriq-9e2f913df70b378379a358a44e7d286f7b765e8e.tar.xz |
percpu: fix percpu accessors to potentially !cpu_possible() cpus: m32r
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>
Acked-by: Hirokazu Takata <takata@linux-m32r.org>
Diffstat (limited to 'arch/m32r')
-rw-r--r-- | arch/m32r/kernel/smpboot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/m32r/kernel/smpboot.c b/arch/m32r/kernel/smpboot.c index 0f06b37..2547d6c 100644 --- a/arch/m32r/kernel/smpboot.c +++ b/arch/m32r/kernel/smpboot.c @@ -592,7 +592,7 @@ int setup_profiling_timer(unsigned int multiplier) * accounting. At that time they also adjust their APIC timers * accordingly. */ - for (i = 0; i < NR_CPUS; ++i) + for_each_possible_cpu(i) per_cpu(prof_multiplier, i) = multiplier; return 0; |