summaryrefslogtreecommitdiffstats
path: root/linux/Platform.h
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-01-13 15:44:05 +0100
committercgzones <cgzones@googlemail.com>2021-01-15 20:55:53 +0100
commit1f20c0fb3debf2fa4d4be934d0b4552fdf814caa (patch)
tree609d91468ed9a53fdc3df4a2f8afe6e08ea640d3 /linux/Platform.h
parentb5a5e83470ef2db6cace89a5f513b038a96bbff9 (diff)
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
Diffstat (limited to 'linux/Platform.h')
0 files changed, 0 insertions, 0 deletions

© 2014-2024 Faster IT GmbH | imprint | privacy policy