Searched defs:mult (Results 1 - 3 of 3) sorted by relevance

/kernel/time/
H A Dsched_clock.c27 u32 mult; member in struct:clock_data
38 .mult = NSEC_PER_SEC / HZ,
54 static inline u64 notrace cyc_to_ns(u64 cyc, u32 mult, u32 shift) argument
56 return (cyc * mult) >> shift;
77 return epoch_ns + cyc_to_ns(cyc, cd.mult, cd.shift);
92 cd.mult, cd.shift);
123 /* calculate the mult/shift to convert counter ticks to ns. */
136 cd.mult, cd.shift);
143 cd.mult = new_mult;
H A Dclocksource.c114 * clocks_calc_mult_shift - calculate mult/shift factors for scaled math of clocks
115 * @mult: pointer to mult variable
121 * The function evaluates the shift/mult pair for the scaled math
130 * calculated mult and shift factors. This guarantees that no 64bit
132 * multiplied with the calculated mult factor. Larger ranges may
133 * reduce the conversion accuracy by chosing smaller mult and shift
137 clocks_calc_mult_shift(u32 *mult, u32 *shift, u32 from, u32 to, u32 maxsec) argument
153 * Find the conversion shift/mult pair which has the best
163 *mult
549 clocks_calc_max_nsecs(u32 mult, u32 shift, u32 maxadj, u64 mask) argument
[all...]
H A Dtimekeeping.c144 /* Do the ns -> cycle conversion first, using original mult */
148 tmp += clock->mult/2;
149 do_div(tmp, clock->mult);
157 tk->xtime_interval = (u64) interval * clock->mult;
160 ((u64) interval * clock->mult) >> clock->shift;
177 * The timekeeper keeps its own mult values for the currently
181 tk->tkr.mult = clock->mult;
205 nsec = delta * tkr->mult + tkr->xtime_nsec;
225 nsec = clocksource_cyc2ns(delta, clock->mult, cloc
1152 u32 mult = clock->mult; local
[all...]

Completed in 50 milliseconds