Commit 5663785
tools/power turbostat: Add Android support for MSR device handling
It uses /dev/msrN device paths on Android instead of /dev/cpu/N/msr,
updates error messages and permission checks to reflect the Android
device path, and wraps platform-specific code with #if defined(ANDROID)
to ensure correct behavior on both Android and non-Android systems.
These changes improve compatibility and usability of turbostat on
Android devices.
Signed-off-by: Kaushlendra Kumar <kaushlendra.kumar@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>1 parent c967900 commit 5663785
1 file changed
+17
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2140 | 2140 | | |
2141 | 2141 | | |
2142 | 2142 | | |
2143 | | - | |
| 2143 | + | |
| 2144 | + | |
| 2145 | + | |
2144 | 2146 | | |
| 2147 | + | |
2145 | 2148 | | |
2146 | 2149 | | |
| 2150 | + | |
| 2151 | + | |
| 2152 | + | |
| 2153 | + | |
2147 | 2154 | | |
2148 | 2155 | | |
2149 | | - | |
| 2156 | + | |
2150 | 2157 | | |
2151 | 2158 | | |
2152 | 2159 | | |
| |||
6476 | 6483 | | |
6477 | 6484 | | |
6478 | 6485 | | |
6479 | | - | |
| 6486 | + | |
| 6487 | + | |
| 6488 | + | |
6480 | 6489 | | |
| 6490 | + | |
6481 | 6491 | | |
6482 | 6492 | | |
6483 | 6493 | | |
| |||
6527 | 6537 | | |
6528 | 6538 | | |
6529 | 6539 | | |
| 6540 | + | |
| 6541 | + | |
| 6542 | + | |
6530 | 6543 | | |
| 6544 | + | |
6531 | 6545 | | |
6532 | 6546 | | |
6533 | 6547 | | |
| |||
0 commit comments