Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/powercap/
Dintel_rapl_common.c850 rp->time_unit = 1000000 / (1 << value); in rapl_check_unit_core()
853 rp->name, rp->energy_unit, rp->time_unit, rp->power_unit); in rapl_check_unit_core()
878 rp->time_unit = 1000000 / (1 << value); in rapl_check_unit_atom()
881 rp->name, rp->energy_unit, rp->time_unit, rp->power_unit); in rapl_check_unit_atom()
995 value = (1 << y) * (4 + f) * rp->time_unit / 4; in rapl_compute_time_window_core()
997 if (value < rp->time_unit) in rapl_compute_time_window_core()
1000 do_div(value, rp->time_unit); in rapl_compute_time_window_core()
1016 return (value) ? value * rp->time_unit : rp->time_unit; in rapl_compute_time_window_atom()
1018 value = div64_u64(value, rp->time_unit); in rapl_compute_time_window_atom()
/linux-6.1.9/include/linux/
Dintel_rapl.h145 unsigned int time_unit; member
/linux-6.1.9/tools/power/x86/turbostat/
Dturbostat.c4579 unsigned int time_unit; in rapl_probe_intel() local
4734 time_unit = msr >> 16 & 0xF; in rapl_probe_intel()
4735 if (time_unit == 0) in rapl_probe_intel()
4736 time_unit = 0xA; in rapl_probe_intel()
4738 rapl_time_units = 1.0 / (1 << (time_unit)); in rapl_probe_intel()