fix(profile): ensure cpu policy can be set regardless of the CPU.

fix #602
This commit is contained in:
Alexandre Pujol 2024-11-10 19:20:00 +00:00
parent 802259e994
commit b0436029f0
Failed to generate hash of commit
2 changed files with 3 additions and 9 deletions

View file

@ -28,15 +28,10 @@ profile cpupower @{exec_path} {
@{sys}/devices/system/cpu/{cpufreq,cpuidle}/** r,
@{sys}/devices/system/cpu/cpu@{int}/{cpufreq,cpuidle}/ r,
@{sys}/devices/system/cpu/cpu@{int}/{cpufreq,cpuidle}/** r,
@{sys}/devices/system/cpu/cpufreq/policy@{int}/scaling_{min,max}_freq rw,
@{sys}/devices/system/cpu/cpufreq/policy@{int}/scaling_governor rw,
@{sys}/devices/system/cpu/cpufreq/policy@{int}/scaling_setspeed rw,
@{sys}/devices/system/cpu/cpu@{int}/cpuidle/state@{int}/disable rw,
@{sys}/devices/system/cpu/cpu@{int}/topology/{physical_package_id,core_id} r,
@{sys}/devices/system/cpu/cpu@{int}/online r,
@{sys}/devices/system/cpu/cpu@{int}/topology/{physical_package_id,core_id} r,
@{sys}/devices/system/cpu/cpufreq/policy@{int}/* rw,
/dev/cpu/@{int}/msr r,

View file

@ -40,8 +40,7 @@ profile power-profiles-daemon @{exec_path} flags=(attach_disconnected) {
@{sys}/devices/system/cpu/*_pstate/status r,
@{sys}/devices/system/cpu/cpu@{int}/power/energy_perf_bias rw,
@{sys}/devices/system/cpu/cpufreq/ r,
@{sys}/devices/system/cpu/cpufreq/policy@{int}/energy_performance_preference rw,
@{sys}/devices/system/cpu/cpufreq/policy@{int}/scaling_governor rw,
@{sys}/devices/system/cpu/cpufreq/policy@{int}/* rw,
@{sys}/firmware/acpi/platform_profile* rw,
@{sys}/firmware/acpi/pm_profile* rw,