Searched refs:time_unit (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/drivers/powercap/
H A Dintel_rapl.c177 unsigned int time_unit; member in struct:rapl_package
863 rp->time_unit = 1000000 / (1 << value); rapl_check_unit_core()
866 rp->id, rp->energy_unit, rp->time_unit, rp->power_unit); rapl_check_unit_core()
888 rp->time_unit = 1000000 / (1 << value); rapl_check_unit_atom()
891 rp->id, rp->energy_unit, rp->time_unit, rp->power_unit); rapl_check_unit_atom()
1015 value = (1 << y) * (4 + f) * rp->time_unit / 4; rapl_compute_time_window_core()
1017 do_div(value, rp->time_unit); rapl_compute_time_window_core()
1029 * Atom time unit encoding is straight forward val * time_unit, rapl_compute_time_window_atom()
1030 * where time_unit is default to 1 sec. Never 0. rapl_compute_time_window_atom()
1033 return (value) ? value *= rp->time_unit : rp->time_unit; rapl_compute_time_window_atom()
1035 value = div64_u64(value, rp->time_unit); rapl_compute_time_window_atom()
/linux-4.4.14/tools/power/x86/turbostat/
H A Dturbostat.c2191 unsigned int time_unit; rapl_probe() local
2244 time_unit = msr >> 16 & 0xF; rapl_probe()
2245 if (time_unit == 0) rapl_probe()
2246 time_unit = 0xA; rapl_probe()
2248 rapl_time_units = 1.0 / (1 << (time_unit)); rapl_probe()

Completed in 165 milliseconds