tools/power turbostat: Add Android support for MSR device handling
authorKaushlendra Kumar <kaushlendra.kumar@intel.com>
Thu, 22 May 2025 08:49:46 +0000 (14:19 +0530)
committerLen Brown <len.brown@intel.com>
Sun, 8 Jun 2025 18:10:16 +0000 (14:10 -0400)
commit5663785ae02f66acf64f285a40e35abd21b8a7b2
treed3a9a94b29d3de74bc740aefd965d26efdfcbdce
parentc967900fcb00927c1758c16130be5cd771993198
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>
tools/power/x86/turbostat/turbostat.c