Home
last modified time | relevance | path

Searched refs:frac (Results 1 – 3 of 3) sorted by relevance

/kernel/time/
Dtimecounter.c16 tc->frac = 0; in timecounter_init()
44 tc->mask, &tc->frac); in timecounter_read_delta()
70 u64 cycles, u64 mask, u64 frac) in cc_cyc2ns_backwards() argument
74 ns = ((ns * cc->mult) - frac) >> cc->shift; in cc_cyc2ns_backwards()
83 u64 nsec = tc->nsec, frac = tc->frac; in timecounter_cyc2time() local
92 nsec -= cc_cyc2ns_backwards(tc->cc, delta, tc->mask, frac); in timecounter_cyc2time()
94 nsec += cyclecounter_cyc2ns(tc->cc, delta, tc->mask, &frac); in timecounter_cyc2time()
/kernel/locking/
Dqspinlock_stat.h70 u64 frac = 0; in lockevent_read() local
73 frac = 100ULL * do_div(sum, kicks); in lockevent_read()
74 frac = DIV_ROUND_CLOSEST_ULL(frac, kicks); in lockevent_read()
81 sum, frac); in lockevent_read()
/kernel/cgroup/
Dcgroup.c6499 s64 whole, frac = 0; in cgroup_parse_float() local
6502 if (!sscanf(input, "%lld.%n%lld%n", &whole, &fstart, &frac, &fend)) in cgroup_parse_float()
6504 if (frac < 0) in cgroup_parse_float()
6509 frac *= power_of_ten(dec_shift - flen); in cgroup_parse_float()
6511 frac = DIV_ROUND_CLOSEST_ULL(frac, power_of_ten(flen - dec_shift)); in cgroup_parse_float()
6513 *v = whole * power_of_ten(dec_shift) + frac; in cgroup_parse_float()