From a0fa1cad07aa9a7d39e708cba3cc5fdb147f3178 Mon Sep 17 00:00:00 2001 From: Aarron Lee Date: Sat, 28 Sep 2024 17:30:20 -0400 Subject: [PATCH] fix intel cpu boost path --- py_modules/cpu_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py_modules/cpu_utils.py b/py_modules/cpu_utils.py index c52d137..d1b6adc 100644 --- a/py_modules/cpu_utils.py +++ b/py_modules/cpu_utils.py @@ -98,7 +98,7 @@ def set_cpb_boost(enabled): if device_utils.is_intel(): if os.path.exists(INTEL_CPU_BOOST_PATH): try: - with open(p, 'w') as file: + with open(INTEL_CPU_BOOST_PATH, 'w') as file: # sys endpoint is named 'no_turbo' # so no_turbo == 0 == cpu boost on # no_turbo == 1 == cpu boost off