mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-08 00:15:04 -05:00
Merge pull request #1912 from cohcho/fix_msr
MSR: supress kernel module warning
This commit is contained in:
@@ -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()
|
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);
|
LOG_WARN(CLEAR "%s" YELLOW_BOLD_S "msr kernel module is not available", tag);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user