Home
last modified time | relevance | path

Searched refs:hz (Results 1 – 3 of 3) sorted by relevance

/systemd-251/src/network/tc/
Dtc-util.c14 static uint32_t hz; in tc_init() local
26 … r = sscanf(line, "%08x%08x%08x%08x", &ticks_to_usec, &usec_to_ticks, &clock_resolution, &hz); in tc_init()
37 *ret_hz = hz; in tc_init()
Dhtb.c457 uint32_t hz; in hierarchy_token_bucket_class_verify() local
474 r = tc_init(NULL, &hz); in hierarchy_token_bucket_class_verify()
479 htb->buffer = htb->rate / hz + htb->mtu; in hierarchy_token_bucket_class_verify()
481 htb->ceil_buffer = htb->ceil_rate / hz + htb->mtu; in hierarchy_token_bucket_class_verify()
/systemd-251/src/basic/
Dtime-util.c1518 static thread_local uint32_t hz = 0; in sysconf_clock_ticks_cached() local
1521 if (hz == 0) { in sysconf_clock_ticks_cached()
1525 hz = r; in sysconf_clock_ticks_cached()
1528 return hz; in sysconf_clock_ticks_cached()
1532 uint32_t hz = sysconf_clock_ticks_cached(); in usec_to_jiffies() local
1533 return DIV_ROUND_UP(u, USEC_PER_SEC / hz); in usec_to_jiffies()
1537 uint32_t hz = sysconf_clock_ticks_cached(); in jiffies_to_usec() local
1538 return DIV_ROUND_UP(j * USEC_PER_SEC, hz); in jiffies_to_usec()