Home
last modified time | relevance | path

Searched refs:mult (Results 1 – 8 of 8) sorted by relevance

/kernel/time/
Dclocksource.c63 clocks_calc_mult_shift(u32 *mult, u32 *shift, u32 from, u32 to, u32 maxsec) in clocks_calc_mult_shift() argument
89 *mult = tmp; in clocks_calc_mult_shift()
206 wd_nsec = clocksource_cyc2ns(delta, watchdog->mult, in clocksource_watchdog()
210 cs_nsec = clocksource_cyc2ns(delta, cs->mult, cs->shift); in clocksource_watchdog()
501 ret = (u64)cs->mult * 11; in clocksource_max_adjustment()
521 u64 clocks_calc_max_nsecs(u32 mult, u32 shift, u32 maxadj, u64 mask, u64 *max_cyc) in clocks_calc_max_nsecs() argument
530 do_div(max_cycles, mult+maxadj); in clocks_calc_max_nsecs()
539 max_nsecs = clocksource_cyc2ns(max_cycles, mult - maxadj, shift); in clocks_calc_max_nsecs()
558 cs->max_idle_ns = clocks_calc_max_nsecs(cs->mult, cs->shift, in clocksource_update_max_deferment()
724 clocks_calc_mult_shift(&cs->mult, &cs->shift, freq, in __clocksource_update_freq_scale()
[all …]
Dsched_clock.c43 u32 mult; member
86 .read_data[0] = { .mult = NSEC_PER_SEC / HZ,
91 static inline u64 notrace cyc_to_ns(u64 cyc, u32 mult, u32 shift) in cyc_to_ns() argument
93 return (cyc * mult) >> shift; in cyc_to_ns()
108 res = rd->epoch_ns + cyc_to_ns(cyc, rd->mult, rd->shift); in sched_clock()
151 ns = rd.epoch_ns + cyc_to_ns((cyc - rd.epoch_cyc) & rd.sched_clock_mask, rd.mult, rd.shift); in update_sched_clock()
196 ns = rd.epoch_ns + cyc_to_ns((cyc - rd.epoch_cyc) & rd.sched_clock_mask, rd.mult, rd.shift); in sched_clock_register()
201 rd.mult = new_mult; in sched_clock_register()
Dclockevents.c42 if (unlikely(!evt->mult)) { in cev_delta2ns()
43 evt->mult = 1; in cev_delta2ns()
46 rnd = (u64) evt->mult - 1; in cev_delta2ns()
75 (!ismax || evt->mult <= (1ULL << evt->shift))) in cev_delta2ns()
78 do_div(clc, evt->mult); in cev_delta2ns()
167 if (unlikely(!dev->mult)) { in clockevents_switch_state()
168 dev->mult = 1; in clockevents_switch_state()
255 clc = ((unsigned long long) delta * dev->mult) >> dev->shift; in clockevents_program_min_delta()
292 clc = ((unsigned long long) delta * dev->mult) >> dev->shift; in clockevents_program_min_delta()
338 clc = ((unsigned long long) delta * dev->mult) >> dev->shift; in clockevents_program_event()
Dtimekeeping.c275 tmp += clock->mult/2; in tk_setup_internals()
276 do_div(tmp, clock->mult); in tk_setup_internals()
284 tk->xtime_interval = (u64) interval * clock->mult; in tk_setup_internals()
286 tk->raw_interval = interval * clock->mult; in tk_setup_internals()
312 tk->tkr_mono.mult = clock->mult; in tk_setup_internals()
313 tk->tkr_raw.mult = clock->mult; in tk_setup_internals()
331 nsec = delta * tkr->mult + tkr->xtime_nsec; in timekeeping_delta_to_ns()
527 update_vsyscall_old(&xt, &wm, tk->tkr_mono.clock, tk->tkr_mono.mult, in update_vsyscall()
686 tk->tkr_mono.xtime_nsec += delta * tk->tkr_mono.mult; in timekeeping_forward_now()
692 tk->tkr_raw.xtime_nsec += delta * tk->tkr_raw.mult; in timekeeping_forward_now()
[all …]
Djiffies.c72 .mult = NSEC_PER_JIFFY << JIFFIES_SHIFT, /* details above */
132 refined_jiffies.mult = ((u32)nsec_per_tick) << JIFFIES_SHIFT; in register_refined_jiffies()
Dtick-broadcast-hrtimer.c89 .mult = 1,
Dtimecounter.c87 ns = ((ns * cc->mult) - frac) >> cc->shift; in cc_cyc2ns_backwards()
Dtimer_list.c232 SEQ_printf(m, " mult: %u\n", dev->mult); in print_tickdevice()