Lines Matching refs:CPUTIME_PER_SEC
14 #define CPUTIME_PER_SEC (CPUTIME_PER_USEC * USEC_PER_SEC) macro
35 return __div((__force unsigned long long) cputime, CPUTIME_PER_SEC / HZ); in cputime_to_jiffies()
40 return (__force cputime_t)(jif * (CPUTIME_PER_SEC / HZ)); in jiffies_to_cputime()
46 do_div(jif, CPUTIME_PER_SEC / HZ); in cputime64_to_jiffies64()
52 return (__force cputime64_t)(jif * (CPUTIME_PER_SEC / HZ)); in jiffies64_to_cputime64()
75 return __div((__force unsigned long long) cputime, CPUTIME_PER_SEC / 2) >> 1; in cputime_to_secs()
80 return (__force cputime_t)(s * CPUTIME_PER_SEC); in secs_to_cputime()
88 unsigned long long ret = value->tv_sec * CPUTIME_PER_SEC; in timespec_to_cputime()
96 value->tv_nsec = (__cputime % CPUTIME_PER_SEC) * NSEC_PER_USEC / CPUTIME_PER_USEC; in cputime_to_timespec()
97 value->tv_sec = __cputime / CPUTIME_PER_SEC; in cputime_to_timespec()
107 unsigned long long ret = value->tv_sec * CPUTIME_PER_SEC; in timeval_to_cputime()
115 value->tv_usec = (__cputime % CPUTIME_PER_SEC) / CPUTIME_PER_USEC; in cputime_to_timeval()
116 value->tv_sec = __cputime / CPUTIME_PER_SEC; in cputime_to_timeval()
125 do_div(clock, CPUTIME_PER_SEC / USER_HZ); in cputime_to_clock_t()
131 return (__force cputime_t)(x * (CPUTIME_PER_SEC / USER_HZ)); in clock_t_to_cputime()
140 do_div(clock, CPUTIME_PER_SEC / USER_HZ); in cputime64_to_clock_t()