mirror of
https://github.com/xzeldon/htop.git
synced 2025-01-31 00:57:24 +03:00
1f20c0fb3d
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