Lines Matching refs:USER_HZ
623 #if (TICK_NSEC % (NSEC_PER_SEC / USER_HZ)) == 0 in jiffies_to_clock_t()
624 # if HZ < USER_HZ in jiffies_to_clock_t()
625 return x * (USER_HZ / HZ); in jiffies_to_clock_t()
627 return x / (HZ / USER_HZ); in jiffies_to_clock_t()
630 return div_u64((u64)x * TICK_NSEC, NSEC_PER_SEC / USER_HZ); in jiffies_to_clock_t()
637 #if (HZ % USER_HZ)==0 in clock_t_to_jiffies()
638 if (x >= ~0UL / (HZ / USER_HZ)) in clock_t_to_jiffies()
640 return x * (HZ / USER_HZ); in clock_t_to_jiffies()
643 if (x >= ~0UL / HZ * USER_HZ) in clock_t_to_jiffies()
647 return div_u64((u64)x * HZ, USER_HZ); in clock_t_to_jiffies()
654 #if (TICK_NSEC % (NSEC_PER_SEC / USER_HZ)) == 0 in jiffies_64_to_clock_t()
655 # if HZ < USER_HZ in jiffies_64_to_clock_t()
656 x = div_u64(x * USER_HZ, HZ); in jiffies_64_to_clock_t()
657 # elif HZ > USER_HZ in jiffies_64_to_clock_t()
658 x = div_u64(x, HZ / USER_HZ); in jiffies_64_to_clock_t()
668 x = div_u64(x * TICK_NSEC, (NSEC_PER_SEC / USER_HZ)); in jiffies_64_to_clock_t()
676 #if (NSEC_PER_SEC % USER_HZ) == 0 in nsec_to_clock_t()
677 return div_u64(x, NSEC_PER_SEC / USER_HZ); in nsec_to_clock_t()
678 #elif (USER_HZ % 512) == 0 in nsec_to_clock_t()
679 return div_u64(x * USER_HZ / 512, NSEC_PER_SEC / 512); in nsec_to_clock_t()
686 return div_u64(x * 9, (9ull * NSEC_PER_SEC + (USER_HZ / 2)) / USER_HZ); in nsec_to_clock_t()