x86: use round_jiffies() for the corruption check timer
authorArjan van de Ven <arjan@linux.intel.com>
Sun, 21 Sep 2008 03:35:44 +0000 (20:35 -0700)
committerIngo Molnar <mingo@elte.hu>
Mon, 22 Sep 2008 08:29:25 +0000 (10:29 +0200)
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: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/setup.c

index 786c188..161f1b3 100644 (file)
@@ -712,7 +712,7 @@ void check_for_bios_corruption(void)
 static void periodic_check_for_corruption(unsigned long data)
 {
        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)