From: Grant Slater Date: Wed, 15 Feb 2023 02:26:30 +0000 (+0000) Subject: hardware: Change CPU energy_perf_bias performance -> balance-performance X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/ac3a6637b58ae70c2d3a52f55a08ba1ea40575d9 hardware: Change CPU energy_perf_bias performance -> balance-performance Signed-off-by: Grant Slater --- diff --git a/cookbooks/hardware/attributes/default.rb b/cookbooks/hardware/attributes/default.rb index c9d003e57..6f89a9c34 100644 --- a/cookbooks/hardware/attributes/default.rb +++ b/cookbooks/hardware/attributes/default.rb @@ -53,9 +53,9 @@ end energy_perf_bias = Dir.glob("/sys/devices/system/cpu/cpu*/power/energy_perf_bias") unless energy_perf_bias.empty? - default[:sysfs][:cpu_power_energy_perf_bias][:comment] = "Set CPU Energy-Performance Bias Preference to performance" + default[:sysfs][:cpu_power_energy_perf_bias][:comment] = "Set CPU Energy-Performance Bias Preference to balance-performance" energy_perf_bias.sort.each do |path| - default[:sysfs][:cpu_power_energy_perf_bias][:parameters][path.sub(%r{^/sys/}, "")] = "0" + default[:sysfs][:cpu_power_energy_perf_bias][:parameters][path.sub(%r{^/sys/}, "")] = "4" end end