diff options
author | Arjan van de Ven <arjan@linux.intel.com> | 2008-09-20 23:35:44 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-09-22 04:29:25 -0400 |
commit | 5871c6b0a52bb052c3891a787655043b90ae18e3 (patch) | |
tree | 13f63a2981c4c393d7aa45e4037fcfebc6d050bc /arch | |
parent | fc38151947477596aa27df6c4306ad6008dc6711 (diff) |
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: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index 786c1886ae53..161f1b33ecec 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c | |||
@@ -712,7 +712,7 @@ void check_for_bios_corruption(void) | |||
712 | static void periodic_check_for_corruption(unsigned long data) | 712 | static void periodic_check_for_corruption(unsigned long data) |
713 | { | 713 | { |
714 | check_for_bios_corruption(); | 714 | check_for_bios_corruption(); |
715 | mod_timer(&periodic_check_timer, jiffies + corruption_check_period*HZ); | 715 | mod_timer(&periodic_check_timer, round_jiffies(jiffies + corruption_check_period*HZ)); |
716 | } | 716 | } |
717 | 717 | ||
718 | void start_periodic_check_for_corruption(void) | 718 | void start_periodic_check_for_corruption(void) |