Searched refs:level_hz (Results 1 - 4 of 4) sorted by relevance

/openbsd-current/sys/arch/riscv64/riscv64/
H A Dcpu.c672 uint64_t level_hz; local
676 level_hz = clock_get_frequency(ci->ci_node, NULL);
677 if (level_hz < min)
678 level_hz = min;
679 if (level_hz > max)
680 level_hz = max;
681 level = howmany(100 * (level_hz - min), (max - min));
748 uint64_t level_hz, opp_hz; local
761 level_hz = min + (level * (max - min)) / 100;
764 if (ot->ot_opp[i].opp_hz <= level_hz
[all...]
/openbsd-current/sys/arch/arm/arm/
H A Dcpu.c834 uint64_t level_hz; local
838 level_hz = clock_get_frequency(ci->ci_node, NULL);
839 if (level_hz < min)
840 level_hz = min;
841 if (level_hz > max)
842 level_hz = max;
843 level = howmany(100 * (level_hz - min), (max - min));
909 uint64_t level_hz, opp_hz; local
922 level_hz = min + (level * (max - min)) / 100;
925 if (ot->ot_opp[i].opp_hz <= level_hz
[all...]
/openbsd-current/sys/arch/arm64/dev/
H A Daplcpu.c341 uint64_t level_hz; local
364 level_hz = min + (level * (max - min)) / 100;
382 if (ot->ot_opp[k].opp_hz <= level_hz &&
/openbsd-current/sys/arch/arm64/arm64/
H A Dcpu.c1804 uint64_t level_hz; local
1808 level_hz = clock_get_frequency(ci->ci_node, NULL);
1809 if (level_hz < min)
1810 level_hz = min;
1811 if (level_hz > max)
1812 level_hz = max;
1813 level = howmany(100 * (level_hz - min), (max - min));
1879 uint64_t level_hz, opp_hz; local
1892 level_hz = min + (level * (max - min)) / 100;
1895 if (ot->ot_opp[i].opp_hz <= level_hz
[all...]

Completed in 120 milliseconds