From 99b58580e98a1672e9572547c7d7d09fd3b3ab82 Mon Sep 17 00:00:00 2001
From: cohcho <chat.freenode.net/cohcho>
Date: Fri, 23 Oct 2020 13:09:13 +0000
Subject: [PATCH] MSR: supress kernel module warning

---
 src/crypto/rx/Rx_linux.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/crypto/rx/Rx_linux.cpp b/src/crypto/rx/Rx_linux.cpp
index 940360467..22288d56e 100644
--- a/src/crypto/rx/Rx_linux.cpp
+++ b/src/crypto/rx/Rx_linux.cpp
@@ -151,7 +151,7 @@ static bool wrmsr_on_all_cpus(uint32_t reg, uint64_t value, uint64_t mask, T&& c
 
 static bool wrmsr_modprobe()
 {
-    if (system("/sbin/modprobe msr > /dev/null 2>&1") != 0) {
+    if (system("/sbin/modprobe msr allow_writes=on > /dev/null 2>&1") != 0) {
         LOG_WARN(CLEAR "%s" YELLOW_BOLD_S "msr kernel module is not available", tag);
 
         return false;