summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorNicholas Mc Guire <hofrat@osadl.org>2015-03-02 12:54:13 +0300
committerJohannes Berg <johannes.berg@intel.com>2015-03-04 12:34:13 +0300
commitcc57ac536a88604824aca1d3c874fd5252f1e867 (patch)
tree501f217c51bdf4f0ee7b5e7d10d9deec8ba01fc3 /scripts/gdb/linux/utils.py
parent64a8cef41a8ce694b59ec75ae52688f58925693c (diff)
downloadlinux-cc57ac536a88604824aca1d3c874fd5252f1e867.tar.xz
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>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions