Skip to content

Commit

Permalink
Merge pull request #8127 from alexmurray/cpu-control-governor
Browse files Browse the repository at this point in the history
interfaces/cpu-control: allow to control cpufreq tunables
  • Loading branch information
mvo5 authored Feb 17, 2020
2 parents fab2008 + 7444379 commit d4a45e9
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions interfaces/builtin/cpu_control.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,23 @@ const cpuControlConnectedPlugAppArmor = `
/sys/devices/system/cpu/cpu*/online rw,
/sys/devices/system/cpu/smt/* r,
/sys/devices/system/cpu/smt/control w,
# https://www.kernel.org/doc/html/latest/admin-guide/pm/cpufreq.html#policy-interface-in-sysfs
/sys/devices/system/cpu/cpufreq/{,**} r,
/sys/devices/system/cpu/cpufreq/policy*/energy_performance_preference w,
/sys/devices/system/cpu/cpufreq/policy*/scaling_governor w,
/sys/devices/system/cpu/cpufreq/policy*/scaling_max_freq w,
/sys/devices/system/cpu/cpufreq/policy*/scaling_min_freq w,
/sys/devices/system/cpu/cpufreq/policy*/scaling_setspeed w,
/sys/devices/system/cpu/cpufreq/boost w,
# https://www.kernel.org/doc/html/latest/admin-guide/pm/intel_pstate.html#user-space-interface-in-sysfs
/sys/devices/system/cpu/intel_pstate/{,*} r,
/sys/devices/system/cpu/intel_pstate/hwp_dynamic_boost w,
/sys/devices/system/cpu/intel_pstate/max_perf_pct w,
/sys/devices/system/cpu/intel_pstate/min_perf_pct w,
/sys/devices/system/cpu/intel_pstate/no_turbo w,
/sys/devices/system/cpu/intel_pstate/status w,
`

func init() {
Expand Down

0 comments on commit d4a45e9

Please sign in to comment.