Commit ae3326a
committed
tools/power turbostat: Harden probe_intel_uncore_frequency()
If sysfs directory "intel_uncore_frequency/cluster00/" exists,
then use uncore cluster code (now its own routine).
The previous check for
"intel_uncore_frequency/package_00_die_00/current_freq_khz",
could be unreliable in the face of sparse die id's.
Signed-off-by: Len Brown <len.brown@intel.com>1 parent 231ce08 commit ae3326a
1 file changed
Lines changed: 20 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5294 | 5294 | | |
5295 | 5295 | | |
5296 | 5296 | | |
5297 | | - | |
| 5297 | + | |
5298 | 5298 | | |
5299 | 5299 | | |
5300 | 5300 | | |
5301 | 5301 | | |
5302 | | - | |
5303 | | - | |
5304 | | - | |
5305 | 5302 | | |
5306 | | - | |
| 5303 | + | |
5307 | 5304 | | |
5308 | 5305 | | |
5309 | 5306 | | |
| |||
5335 | 5332 | | |
5336 | 5333 | | |
5337 | 5334 | | |
5338 | | - | |
| 5335 | + | |
| 5336 | + | |
| 5337 | + | |
| 5338 | + | |
| 5339 | + | |
| 5340 | + | |
5339 | 5341 | | |
5340 | | - | |
5341 | 5342 | | |
5342 | 5343 | | |
5343 | 5344 | | |
| |||
5351 | 5352 | | |
5352 | 5353 | | |
5353 | 5354 | | |
| 5355 | + | |
5354 | 5356 | | |
5355 | 5357 | | |
5356 | 5358 | | |
| |||
5382 | 5384 | | |
5383 | 5385 | | |
5384 | 5386 | | |
| 5387 | + | |
| 5388 | + | |
| 5389 | + | |
| 5390 | + | |
| 5391 | + | |
| 5392 | + | |
| 5393 | + | |
| 5394 | + | |
| 5395 | + | |
| 5396 | + | |
| 5397 | + | |
5385 | 5398 | | |
5386 | 5399 | | |
5387 | 5400 | | |
| |||
0 commit comments