summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-01-17 17:32:08 (GMT)
committerThomas Haller <thaller@redhat.com>2017-01-17 17:32:09 (GMT)
commitc33dec5a4a7df01730f90dd41f28a53c188aab46 (patch)
tree0deca0d264d6bc5dfae56d23489c823e6e4aa63c /lib
parent8e0ead4b5bcf22dcc210442629ebb416116ea1f0 (diff)
downloadlibnl-c33dec5a4a7df01730f90dd41f28a53c188aab46.zip
libnl-c33dec5a4a7df01730f90dd41f28a53c188aab46.tar.gz
libnl-c33dec5a4a7df01730f90dd41f28a53c188aab46.tar.bz2
lib/utils.c: ensure calling get_psched_settings() for nl_us2ticks()/nl_ticks2us()
Diffstat (limited to 'lib')
-rw-r--r--lib/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/utils.c b/lib/utils.c
index 49e2547..7a791e1 100644
--- a/lib/utils.c
+++ b/lib/utils.c
@@ -513,6 +513,7 @@ int nl_get_psched_hz(void)
*/
uint32_t nl_us2ticks(uint32_t us)
{
+ get_psched_settings();
return us * ticks_per_usec;
}
@@ -524,6 +525,7 @@ uint32_t nl_us2ticks(uint32_t us)
*/
uint32_t nl_ticks2us(uint32_t ticks)
{
+ get_psched_settings();
return ticks / ticks_per_usec;
}