aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/time.c
diff options
context:
space:
mode:
authorSven Schnelle <svens@linux.ibm.com>2020-06-12 13:06:07 +0200
committerHeiko Carstens <heiko.carstens@de.ibm.com>2020-06-29 16:31:46 +0200
commit0188d08a46ffe4a39c6b463451a41d8b503d04d6 (patch)
tree4d2450354726607ac34c0fe1aac243581a99f04c /arch/s390/kernel/time.c
parentLinux 5.8-rc3 (diff)
downloadlinux-dev-0188d08a46ffe4a39c6b463451a41d8b503d04d6.tar.xz
linux-dev-0188d08a46ffe4a39c6b463451a41d8b503d04d6.zip
s390: convert to msecs_to_jiffies()
Instead of using the old 'jiffies + HZ {/,*} something' calculation use msecs_to_jiffies() as that makes the code more readable. Signed-off-by: Sven Schnelle <svens@linux.ibm.com> Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/time.c')
-rw-r--r--arch/s390/kernel/time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/time.c b/arch/s390/kernel/time.c
index b1113b519432..6bc20861fff9 100644
--- a/arch/s390/kernel/time.c
+++ b/arch/s390/kernel/time.c
@@ -669,7 +669,7 @@ static void stp_work_fn(struct work_struct *work)
* There is a usable clock but the synchonization failed.
* Retry after a second.
*/
- mod_timer(&stp_timer, jiffies + HZ);
+ mod_timer(&stp_timer, jiffies + msecs_to_jiffies(MSEC_PER_SEC));
out_unlock:
mutex_unlock(&stp_work_mutex);