https://bugs.kde.org/show_bug.cgi?id=493093

--- Comment #4 from Jonathan L Hanmann <jhanm...@ca.rr.com> ---
Created attachment 173660
  --> https://bugs.kde.org/attachment.cgi?id=173660&action=edit
Improved Patch to ksystemstats/plugins/cpu/linuxcpuplugin.cpp

This fixes both the hang/timeout and the extraneous core 0 problem. The core 0
problem was caused by my prior patch. While I am not happy about the
conditional on the cpus.push_back(info) I had to add it works. You will likely
know a better means of addressing the issue it is addressing.

That issue is that the /proc/cpuinfo for the RK3588 includes a line for the
Serial at the end of the cpu info. That is messing up your algorithm and it is
being counted as an extra cpu core albeit with no real information. I added the
detection of the "Serial" field with a break from the inner for loop and the
conditional on the push_back.

There is now no hang and only 8 cores listed. I will attach my /proc/cpuinfo
also so you may see the input file causing this difficulty.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to