Commit d34fe50
tools/power turbostat: Handle cap_get_proc() ENOSYS
Kernels configured with CONFIG_MULTIUSER=n have no cap_get_proc().
Check for ENOSYS to recognize this case, and continue on to
attempt to access the requested MSRs (such as temperature).
Signed-off-by: Calvin Owens <[email protected]>
Signed-off-by: Len Brown <[email protected]>1 parent 6ea0ec1 commit d34fe50
1 file changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6574 | 6574 | | |
6575 | 6575 | | |
6576 | 6576 | | |
6577 | | - | |
| 6577 | + | |
| 6578 | + | |
| 6579 | + | |
| 6580 | + | |
| 6581 | + | |
| 6582 | + | |
| 6583 | + | |
| 6584 | + | |
6578 | 6585 | | |
| 6586 | + | |
6579 | 6587 | | |
6580 | 6588 | | |
6581 | 6589 | | |
| |||
0 commit comments