tools/power x86_energy_perf_policy: Enhance HWP enable

[ Upstream commit c97c057d35 ]

On enabling HWP, preserve the reserved bits in MSR_PM_ENABLE.

Also, skip writing the MSR_PM_ENABLE if HWP is already enabled.

Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Len Brown 2025-09-19 14:07:02 -04:00 • committed by Greg Kroah-Hartman
commit fac1b37006