Lines Matching refs:HZ

310 #if HZ <= MSEC_PER_SEC && !(MSEC_PER_SEC % HZ)  in jiffies_to_msecs()
311 return (MSEC_PER_SEC / HZ) * j; in jiffies_to_msecs()
312 #elif HZ > MSEC_PER_SEC && !(HZ % MSEC_PER_SEC) in jiffies_to_msecs()
313 return (j + (HZ / MSEC_PER_SEC) - 1)/(HZ / MSEC_PER_SEC); in jiffies_to_msecs()
331 BUILD_BUG_ON(HZ > USEC_PER_SEC); in jiffies_to_usecs()
333 #if !(USEC_PER_SEC % HZ) in jiffies_to_usecs()
334 return (USEC_PER_SEC / HZ) * j; in jiffies_to_usecs()
706 # if HZ < USER_HZ in jiffies_to_clock_t()
707 return x * (USER_HZ / HZ); in jiffies_to_clock_t()
709 return x / (HZ / USER_HZ); in jiffies_to_clock_t()
719 #if (HZ % USER_HZ)==0 in clock_t_to_jiffies()
720 if (x >= ~0UL / (HZ / USER_HZ)) in clock_t_to_jiffies()
722 return x * (HZ / USER_HZ); in clock_t_to_jiffies()
725 if (x >= ~0UL / HZ * USER_HZ) in clock_t_to_jiffies()
729 return div_u64((u64)x * HZ, USER_HZ); in clock_t_to_jiffies()
737 # if HZ < USER_HZ in jiffies_64_to_clock_t()
738 x = div_u64(x * USER_HZ, HZ); in jiffies_64_to_clock_t()
739 # elif HZ > USER_HZ in jiffies_64_to_clock_t()
740 x = div_u64(x, HZ / USER_HZ); in jiffies_64_to_clock_t()
774 #if !(NSEC_PER_SEC % HZ) in jiffies64_to_nsecs()
775 return (NSEC_PER_SEC / HZ) * j; in jiffies64_to_nsecs()
797 #if (NSEC_PER_SEC % HZ) == 0 in nsecs_to_jiffies64()
799 return div_u64(n, NSEC_PER_SEC / HZ); in nsecs_to_jiffies64()
800 #elif (HZ % 512) == 0 in nsecs_to_jiffies64()
802 return div_u64(n * HZ / 512, NSEC_PER_SEC / 512); in nsecs_to_jiffies64()
808 return div_u64(n * 9, (9ull * NSEC_PER_SEC + HZ / 2) / HZ); in nsecs_to_jiffies64()