diff options
| author | Rusty Russell <rusty@rustcorp.com.au> | 2008-12-31 18:42:14 -0500 |
|---|---|---|
| committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-12-31 18:42:14 -0500 |
| commit | 9e2f913df70b378379a358a44e7d286f7b765e8e (patch) | |
| tree | c97316a74bd62fc6829581d9ea9a78e06529d8ac /arch/m32r | |
| parent | 6aaa8ce523c7ce954b81b8c0b3e32c8be599af8d (diff) | |
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 0f06b3722e96..2547d6c4a827 100644 --- a/arch/m32r/kernel/smpboot.c +++ b/arch/m32r/kernel/smpboot.c | |||
| @@ -592,7 +592,7 @@ int setup_profiling_timer(unsigned int multiplier) | |||
| 592 | * accounting. At that time they also adjust their APIC timers | 592 | * accounting. At that time they also adjust their APIC timers |
| 593 | * accordingly. | 593 | * accordingly. |
| 594 | */ | 594 | */ |
| 595 | for (i = 0; i < NR_CPUS; ++i) | 595 | for_each_possible_cpu(i) |
| 596 | per_cpu(prof_multiplier, i) = multiplier; | 596 | per_cpu(prof_multiplier, i) = multiplier; |
| 597 | 597 | ||
| 598 | return 0; | 598 | return 0; |
