Skip to content

Commit

Permalink
x86: use round_jiffies() for the corruption check timer
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arjan van de Ven authored and Ingo Molnar committed Sep 22, 2008
1 parent fc38151 commit 5871c6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5871c6b

Please sign in to comment.