Lines Matching +full:60 +full:hz

183 		if (tz->tz_minuteswest > 15*60 || tz->tz_minuteswest < -15*60)  in do_sys_settimeofday64()
373 * two most common HZ cases.
379 #if HZ <= MSEC_PER_SEC && !(MSEC_PER_SEC % HZ) in jiffies_to_msecs()
380 return (MSEC_PER_SEC / HZ) * j; in jiffies_to_msecs()
381 #elif HZ > MSEC_PER_SEC && !(HZ % MSEC_PER_SEC) in jiffies_to_msecs()
382 return (j + (HZ / MSEC_PER_SEC) - 1)/(HZ / MSEC_PER_SEC); in jiffies_to_msecs()
403 * Hz usually doesn't go much further MSEC_PER_SEC. in jiffies_to_usecs()
406 BUILD_BUG_ON(HZ > USEC_PER_SEC); in jiffies_to_usecs()
408 #if !(USEC_PER_SEC % HZ) in jiffies_to_usecs()
409 return (USEC_PER_SEC / HZ) * j; in jiffies_to_usecs()
441 * 60 (allowable under ISO 8601). The leap second is treated the same
465 )*60 + min /* now have minutes */ in mktime64()
466 )*60 + sec; /* finally seconds */ in mktime64()
566 * The _msecs_to_jiffies helpers are the HZ dependent conversion
665 # if HZ < USER_HZ in jiffies_to_clock_t()
666 return x * (USER_HZ / HZ); in jiffies_to_clock_t()
668 return x / (HZ / USER_HZ); in jiffies_to_clock_t()
684 #if (HZ % USER_HZ)==0 in clock_t_to_jiffies()
685 if (x >= ~0UL / (HZ / USER_HZ)) in clock_t_to_jiffies()
687 return x * (HZ / USER_HZ); in clock_t_to_jiffies()
690 if (x >= ~0UL / HZ * USER_HZ) in clock_t_to_jiffies()
694 return div_u64((u64)x * HZ, USER_HZ); in clock_t_to_jiffies()
708 # if HZ < USER_HZ in jiffies_64_to_clock_t()
709 x = div_u64(x * USER_HZ, HZ); in jiffies_64_to_clock_t()
710 # elif HZ > USER_HZ in jiffies_64_to_clock_t()
711 x = div_u64(x, HZ / USER_HZ); in jiffies_64_to_clock_t()
743 * exact for HZ=60, 72, 90, 120, 144, 180, 300, 600, 900, ... in nsec_to_clock_t()
757 #if !(NSEC_PER_SEC % HZ) in jiffies64_to_nsecs()
758 return (NSEC_PER_SEC / HZ) * j; in jiffies64_to_nsecs()
773 #if HZ <= MSEC_PER_SEC && !(MSEC_PER_SEC % HZ) in jiffies64_to_msecs()
774 return (MSEC_PER_SEC / HZ) * j; in jiffies64_to_msecs()
798 #if (NSEC_PER_SEC % HZ) == 0 in nsecs_to_jiffies64()
799 /* Common case, HZ = 100, 128, 200, 250, 256, 500, 512, 1000 etc. */ in nsecs_to_jiffies64()
800 return div_u64(n, NSEC_PER_SEC / HZ); in nsecs_to_jiffies64()
801 #elif (HZ % 512) == 0 in nsecs_to_jiffies64()
802 /* overflow after 292 years if HZ = 1024 */ in nsecs_to_jiffies64()
803 return div_u64(n * HZ / 512, NSEC_PER_SEC / 512); in nsecs_to_jiffies64()
806 * Generic case - optimized for cases where HZ is a multiple of 3. in nsecs_to_jiffies64()
807 * overflow after 64.99 years, exact for HZ = 60, 72, 90, 120 etc. in nsecs_to_jiffies64()
809 return div_u64(n * 9, (9ull * NSEC_PER_SEC + HZ / 2) / HZ); in nsecs_to_jiffies64()