Searched refs:hz (Results 1 – 3 of 3) sorted by relevance
14 static uint32_t hz; in tc_init() local26 … 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()
457 uint32_t hz; in hierarchy_token_bucket_class_verify() local474 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()
1518 static thread_local uint32_t hz = 0; in sysconf_clock_ticks_cached() local1521 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() local1533 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() local1538 return DIV_ROUND_UP(j * USEC_PER_SEC, hz); in jiffies_to_usec()