提交 5a96f4a5 编写于 作者: Y Yinghai Lu 提交者: Ingo Molnar

x86: fix recursion in arch/x86/kernel/cpu/mcheck/mce_amd_64.c

remove the recursion from this function.
Signed-off-by: NIngo Molnar <mingo@elte.hu>
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
上级 508bebbb
...@@ -555,7 +555,7 @@ static __cpuinit int threshold_create_device(unsigned int cpu) ...@@ -555,7 +555,7 @@ static __cpuinit int threshold_create_device(unsigned int cpu)
int err = 0; int err = 0;
for (bank = 0; bank < NR_BANKS; ++bank) { for (bank = 0; bank < NR_BANKS; ++bank) {
if (!(per_cpu(bank_map, cpu) & 1 << bank)) if (!(per_cpu(bank_map, cpu) & (1 << bank)))
continue; continue;
err = threshold_create_bank(cpu, bank); err = threshold_create_bank(cpu, bank);
if (err) if (err)
...@@ -638,7 +638,7 @@ static void threshold_remove_device(unsigned int cpu) ...@@ -638,7 +638,7 @@ static void threshold_remove_device(unsigned int cpu)
unsigned int bank; unsigned int bank;
for (bank = 0; bank < NR_BANKS; ++bank) { for (bank = 0; bank < NR_BANKS; ++bank) {
if (!(per_cpu(bank_map, cpu) & 1 << bank)) if (!(per_cpu(bank_map, cpu) & (1 << bank)))
continue; continue;
threshold_remove_bank(cpu, bank); threshold_remove_bank(cpu, bank);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册