vt: use msecs_to_jiffies for time conversion
authorNicholas Mc Guire <hofrat@osadl.org>
Mon, 9 Feb 2015 15:54:10 +0000 (10:54 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Mar 2015 03:02:26 +0000 (04:02 +0100)
commit3372ec28622083ac87daf18918a222fbee06f6f9
tree15abebced96ef63405721de74c34c64f97052f3c
parent678afb9aa8cf2002160c1a56cef5c90df6dc285e
vt: use msecs_to_jiffies for time conversion

Converting milliseconds to jiffies by "val * HZ / 1000" is technically
OK but msecs_to_jiffies(val) is the cleaner solution and handles all
corner cases correctly. This is a minor API consolidation only and
should make things more readable.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/vt.c