Lines Matching refs:mcnt
30 u64 mcnt; member
350 static void scale_freq_tick(u64 acnt, u64 mcnt) in scale_freq_tick() argument
360 if (check_mul_overflow(mcnt, arch_max_freq_ratio, &mcnt) || !mcnt) in scale_freq_tick()
363 freq_scale = div64_u64(acnt, mcnt); in scale_freq_tick()
379 static inline void scale_freq_tick(u64 acnt, u64 mcnt) { } in scale_freq_tick() argument
385 u64 acnt, mcnt, aperf, mperf; in arch_scale_freq_tick() local
393 mcnt = mperf - s->mperf; in arch_scale_freq_tick()
401 s->mcnt = mcnt; in arch_scale_freq_tick()
404 scale_freq_tick(acnt, mcnt); in arch_scale_freq_tick()
419 u64 acnt, mcnt; in arch_freq_get_on_cpu() local
428 mcnt = s->mcnt; in arch_freq_get_on_cpu()
435 if (!mcnt || (jiffies - last) > MAX_SAMPLE_AGE) in arch_freq_get_on_cpu()
438 return div64_u64((cpu_khz * acnt), mcnt); in arch_freq_get_on_cpu()