Skip to content

Commit c2238f1

Browse files
Chen Gongaegl
authored andcommitted
x86/mce: Fix the MCE poll timer logic
In commit 82f7af0 (x86/mce: Cleanup timer mess), Thomas just forgot the "/ 2" there while cleaning up. Signed-off-by: Chen Gong <[email protected]> Acked-by: Thomas Gleixner <[email protected]> Signed-off-by: Tony Luck <[email protected]>
1 parent 82f7af0 commit c2238f1

File tree

1 file changed

+1
-1
lines changed
  • arch/x86/kernel/cpu/mcheck

1 file changed

+1
-1
lines changed

arch/x86/kernel/cpu/mcheck/mce.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1266,7 +1266,7 @@ static void mce_timer_fn(unsigned long data)
12661266
*/
12671267
iv = __this_cpu_read(mce_next_interval);
12681268
if (mce_notify_irq())
1269-
iv = max(iv, (unsigned long) HZ/100);
1269+
iv = max(iv / 2, (unsigned long) HZ/100);
12701270
else
12711271
iv = min(iv * 2, round_jiffies_relative(check_interval * HZ));
12721272
__this_cpu_write(mce_next_interval, iv);

0 commit comments

Comments
 (0)