Skip to content

Commit

Permalink
add Comet Lake to the list of supported cpus (fix #150)
Browse files Browse the repository at this point in the history
  • Loading branch information
erpalma committed Feb 20, 2020
1 parent d5ee6de commit 88216b1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lenovo_fix.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
'Kaby Lake (R)': (0x8E, 0x9E),
'Coffee Lake': (0x9E,),
'Cannon Lake': (0x66,),
'Comet Lake': (0xA6,),
}


Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 88216b1

Please sign in to comment.