staging: unisys: use msecs_to_jiffies for conversions
authorNicholas Mc Guire <der.herr@hofr.at>
Sat, 31 Jan 2015 11:02:08 +0000 (12:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Feb 2015 09:18:38 +0000 (17:18 +0800)
This is only an API consolidation to make things more readable.
Instances of  var * HZ / 1000  are replaced by  msecs_to_jiffies(var).

Signed-off-by: Nicholas Mc Guire <der.herr@hofr.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorchipset/visorchipset_main.c

index 82e259dbc173bb648eefb5431d9b66eb918362a3..f606ee9e0de908fb1107ce6f66fbe07785f3f6c9 100644 (file)
@@ -1594,7 +1594,7 @@ parahotplug_next_id(void)
 static unsigned long
 parahotplug_next_expiration(void)
 {
-       return jiffies + PARAHOTPLUG_TIMEOUT_MS * HZ / 1000;
+       return jiffies + msecs_to_jiffies(PARAHOTPLUG_TIMEOUT_MS);
 }
 
 /*
This page took 0.036543 seconds and 5 git commands to generate.