From 0dcf7c1cdbff42fa814d761ba47c1535fd091bc6 Mon Sep 17 00:00:00 2001 From: erpalma Date: Tue, 14 Aug 2018 15:15:33 -0700 Subject: [PATCH] fix typo --- lenovo_fix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lenovo_fix.py b/lenovo_fix.py index 8b471c0..b05cf7f 100755 --- a/lenovo_fix.py +++ b/lenovo_fix.py @@ -202,7 +202,7 @@ def calc_reg_values(config): def set_hwp(pref): # set HWP energy performance hints assert pref in ('performance', 'balance_performance', 'default', 'balance_power', 'power') - CPUs = ['/sys/devices/system/cpu/{:d}/cpufreq/energy_performance_preference'.format(x) for x in range(cpu_count())] + CPUs = ['/sys/devices/system/cpu/cpu{:d}/cpufreq/energy_performance_preference'.format(x) for x in range(cpu_count())] for i, c in enumerate(CPUs): with open(c, 'wb') as f: f.write(pref.encode())