]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tools/power x86_energy_perf_policy: Add Android MSR device support
authorKaushlendra Kumar <kaushlendra.kumar@intel.com>
Fri, 3 Oct 2025 11:03:19 +0000 (16:33 +0530)
committerLen Brown <len.brown@intel.com>
Tue, 2 Dec 2025 20:58:30 +0000 (15:58 -0500)
commit2ff4b59f2e6222a13d76c4178bcd1878be3d23ac
treee4e049b2c732704cb54c32716746fb1d4025aaa7
parentd71cb404f002d0aa012e6b394752ff3cfc8d9f73
tools/power x86_energy_perf_policy: Add Android MSR device support

Add support for Android MSR device paths which use /dev/msrN format
instead of the standard Linux /dev/cpu/N/msr format. The tool now
probes both path formats at startup and uses the appropriate one.

This enables x86_energy_perf_policy to work on Android systems where
MSR devices follow a different naming convention while maintaining
full compatibility with standard Linux systems.

Signed-off-by: Kaushlendra Kumar <kaushlendra.kumar@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c