mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
fc38151947
commit
5871c6b0a5
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue