Christian Göttsche 1f20c0fb3d Linux: fall back to cpuinfo on slow scaling_cur_freq read
On some AMD and Intel CPUs read()ing scaling_cur_freq is quite slow
(> 1ms). This delay accumulates for every core.
If the read on CPU 0 takes longer than 500us bail out and fall back to
reading the frequencies from /proc/cpuinfo.
Once the condition has been met, bail out early for the next couple of
scans.

Closes: #471
2021-01-15 20:55:53 +01:00
..
2021-01-04 23:12:43 +01:00
2020-12-19 21:13:32 +01:00
2020-12-19 21:13:32 +01:00
2020-10-31 18:51:53 +01:00
2020-10-31 18:51:53 +01:00