diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-01-30 07:33:40 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:33:40 -0500 |
commit | 5a96f4a55c3b0bfd40771a973b173e1b94909559 (patch) | |
tree | 3f387610ca93c7f1067a1971d98dd0bd235dafb1 | |
parent | 508bebbb1f211fbf3f392feea44218045096f240 (diff) |
x86: fix recursion in arch/x86/kernel/cpu/mcheck/mce_amd_64.c
remove the recursion from this function.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r-- | arch/x86/kernel/cpu/mcheck/mce_amd_64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/cpu/mcheck/mce_amd_64.c b/arch/x86/kernel/cpu/mcheck/mce_amd_64.c index 77e666628818..32671da8184e 100644 --- a/arch/x86/kernel/cpu/mcheck/mce_amd_64.c +++ b/arch/x86/kernel/cpu/mcheck/mce_amd_64.c | |||
@@ -555,7 +555,7 @@ static __cpuinit int threshold_create_device(unsigned int cpu) | |||
555 | int err = 0; | 555 | int err = 0; |
556 | 556 | ||
557 | for (bank = 0; bank < NR_BANKS; ++bank) { | 557 | for (bank = 0; bank < NR_BANKS; ++bank) { |
558 | if (!(per_cpu(bank_map, cpu) & 1 << bank)) | 558 | if (!(per_cpu(bank_map, cpu) & (1 << bank))) |
559 | continue; | 559 | continue; |
560 | err = threshold_create_bank(cpu, bank); | 560 | err = threshold_create_bank(cpu, bank); |
561 | if (err) | 561 | if (err) |
@@ -638,7 +638,7 @@ static void threshold_remove_device(unsigned int cpu) | |||
638 | unsigned int bank; | 638 | unsigned int bank; |
639 | 639 | ||
640 | for (bank = 0; bank < NR_BANKS; ++bank) { | 640 | for (bank = 0; bank < NR_BANKS; ++bank) { |
641 | if (!(per_cpu(bank_map, cpu) & 1 << bank)) | 641 | if (!(per_cpu(bank_map, cpu) & (1 << bank))) |
642 | continue; | 642 | continue; |
643 | threshold_remove_bank(cpu, bank); | 643 | threshold_remove_bank(cpu, bank); |
644 | } | 644 | } |