Fix check that CPU is a valid CPU

Review Request #128085 - Created June 3, 2016 and submitted

Information
David Edmundson
solid
master
167ff4c...
Reviewers
kdeframeworks, solid
We have a check that an devices/system/cpu/cpuN entry contains a
processor and not just an empty socket, however it relies on somewhat
outdated /sys files.

cpuN/cpufreq isn't guaranteed to exist as for some systems (my AMD
processor at least).

The docs in the linux kernel imply topology/core_id should always exist,
and should still work as a valid check that we have a populated CPU
socket.

  
David Edmundson
Rohan Garg
Lamarque Souza
Sebastian Kügler
David Edmundson
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit f55f25fc7274722486ff83557b3224c0540523f5 by David Edmundson to branch master.
Loading...