Browse Source

add Comet Lake to the list of supported cpus (fix #150)

erpalma 4 years ago
parent
commit
88216b119a
1 changed files with 3 additions and 2 deletions
  1. 3 2
      lenovo_fix.py

+ 3 - 2
lenovo_fix.py

@@ -77,6 +77,7 @@ supported_cpus = {
     '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: