Added additional MSR registers for Ryzen CPUs.

This commit is contained in:
XMRig 2019-12-12 14:21:15 +07:00
parent c62ac89081
commit 7ff465053b
No known key found for this signature in database
GPG key ID: 446A53638BE94409

View file

@ -119,6 +119,8 @@ void xmrig::Rx::osInit(const RxConfig &config)
if (Cpu::info()->assembly() == Assembly::RYZEN && wrmsr_modprobe()) {
wrmsr_on_all_cpus(0xC0011022, 0x510000);
wrmsr_on_all_cpus(0xC001102b, 0x1808cc16);
wrmsr_on_all_cpus(0xC0011020, 0);
wrmsr_on_all_cpus(0xC0011021, 0x40);
return;
}