Skip to content

Commit

Permalink
add warning for MSR changes
Browse files Browse the repository at this point in the history
- add warning
- remove msr change
  • Loading branch information
psychocrypt committed Dec 17, 2019
1 parent 3137396 commit a183cac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/randomx_booster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,15 @@ if cat /proc/cpuinfo | grep -q "AMD Ryzen" ;
wrmsr -a 0xc0011022 0x510000
wrmsr -a 0xc001102b 0x1808cc16
wrmsr -a 0xc0011020 0
wrmsr -a 0xc0011021 0x40
echo "MSR register values for Ryzen applied"
echo "WARNING: MSR register changes can result into stability issues!"
echo "Reboot your system to revert the changes."
elif cat /proc/cpuinfo | grep -q "Intel" ;
then
echo "Detected Intel"
wrmsr -a 0x1a4 7
echo "MSR register values for Intel applied"
echo "WARNING: MSR register changes can result into stability issues!"
echo "Reboot your system to revert the changes."
else
echo "No supported CPU detected"
Expand Down

0 comments on commit a183cac

Please sign in to comment.