From 88216b119ad512d6d345e66dd304ba7b6b3e93c0 Mon Sep 17 00:00:00 2001 From: erpalma Date: Thu, 20 Feb 2020 10:30:08 +0100 Subject: [PATCH] add Comet Lake to the list of supported cpus (fix #150) --- lenovo_fix.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lenovo_fix.py b/lenovo_fix.py index 2f10942..6b2a896 100755 --- a/lenovo_fix.py +++ b/lenovo_fix.py @@ -77,6 +77,7 @@ 'Kaby Lake (R)': (0x8E, 0x9E), 'Coffee Lake': (0x9E,), 'Cannon Lake': (0x66,), + 'Comet Lake': (0xA6,), } @@ -530,8 +531,8 @@ def set_hwp(): def set_disable_bdprochot(): # Disable BDPROCHOT - cur_val = readmsr(0x1FC,flatten=True) - new_val = (cur_val & 0xFFFFFFFFFFFFFFFE) + cur_val = readmsr(0x1FC, flatten=True) + new_val = cur_val & 0xFFFFFFFFFFFFFFFE writemsr(0x1FC, new_val) if args.debug: