mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-29 17:22:07 +00:00
s390-kernel-convert-timeouts-to-use-secs_to_jiffies-fix
simplify cmm_set_timer() Link: https://lkml.kernel.org/r/Z2G1ZPL2cAlQOYlF@li-008a6a4c-3549-11b2-a85c-c5cc2836eea2.ibm.com Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com> Cc: Easwar Hariharan <eahariha@linux.microsoft.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
77c3fcecd2
commit
14987e51f3
@ -204,7 +204,7 @@ static void cmm_set_timer(void)
|
||||
del_timer(&cmm_timer);
|
||||
return;
|
||||
}
|
||||
mod_timer(&cmm_timer, jiffies + msecs_to_jiffies(cmm_timeout_seconds * MSEC_PER_SEC));
|
||||
mod_timer(&cmm_timer, jiffies + secs_to_jiffies(cmm_timeout_seconds));
|
||||
}
|
||||
|
||||
static void cmm_timer_fn(struct timer_list *unused)
|
||||
|
Loading…
Reference in New Issue
Block a user