]> git.baikalelectronics.ru Git - kernel.git/commit
mesh_plink: use msecs_to_jiffies for proper time conversion
authorNicholas Mc Guire <hofrat@osadl.org>
Mon, 2 Mar 2015 09:54:13 +0000 (04:54 -0500)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 4 Mar 2015 09:34:13 +0000 (10:34 +0100)
commit529119dd0ccc90d969d04140699b8536c1bdc998
tree501f217c51bdf4f0ee7b5e7d10d9deec8ba01fc3
parent601da57c35bed52ecf7aae2e393670a7c229048e
mesh_plink: use msecs_to_jiffies for proper time conversion

This is primarily an API consolidation and should make things more readable
it replaces var * HZ / 1000 by msecs_to_jiffies(var) which also handles
corner cases correctly.

There is a change of behavior as e.g. for HZ 100, t * HZ / 1000 will
return 0 for t < 10 but msecs_to_jiffies will return at least 1 always.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mesh_plink.c