Lines Matching defs:cputime
2 * include/asm-s390/cputime.h
64 cputime64_to_jiffies64(cputime64_t cputime)
66 do_div(cputime, 1000000 / HZ);
67 return cputime;
71 * Convert cputime to milliseconds and back.
74 cputime_to_msecs(const cputime_t cputime)
76 return __div(cputime, 1000);
86 * Convert cputime to milliseconds and back.
89 cputime_to_secs(const cputime_t cputime)
91 return __div(cputime, 1000000);
101 * Convert cputime to timespec and back.
110 cputime_to_timespec(const cputime_t cputime, struct timespec *value)
115 rp.pair = cputime >> 1;
120 value->tv_nsec = (cputime % 1000000) * 1000;
121 value->tv_sec = cputime / 1000000;
126 * Convert cputime to timeval and back.
127 * Since cputime and timeval have the same resolution (microseconds)
137 cputime_to_timeval(const cputime_t cputime, struct timeval *value)
142 rp.pair = cputime >> 1;
147 value->tv_usec = cputime % 1000000;
148 value->tv_sec = cputime / 1000000;
153 * Convert cputime to clock and back.
156 cputime_to_clock_t(cputime_t cputime)
158 return __div(cputime, 1000000 / USER_HZ);
171 cputime64_to_clock_t(cputime64_t cputime)
173 return __div(cputime, 1000000 / USER_HZ);