Commit 5871c6b0 authored by Arjan van de Ven's avatar Arjan van de Ven Committed by Ingo Molnar

x86: use round_jiffies() for the corruption check timer

the exact timing of the corruption check isn't too important (it's once a
minute timer), use round_jiffies() to align it and avoid extra wakeups.
Signed-off-by: default avatarArjan van de Ven <arjan@linux.intel.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent fc381519
...@@ -712,7 +712,7 @@ void check_for_bios_corruption(void) ...@@ -712,7 +712,7 @@ void check_for_bios_corruption(void)
static void periodic_check_for_corruption(unsigned long data) static void periodic_check_for_corruption(unsigned long data)
{ {
check_for_bios_corruption(); check_for_bios_corruption();
mod_timer(&periodic_check_timer, jiffies + corruption_check_period*HZ); mod_timer(&periodic_check_timer, round_jiffies(jiffies + corruption_check_period*HZ));
} }
void start_periodic_check_for_corruption(void) void start_periodic_check_for_corruption(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment