From 1bf159d1e8c0426d72fde924be4b31c3039028dd Mon Sep 17 00:00:00 2001 From: SChernykh Date: Mon, 13 Jul 2020 20:43:49 +0200 Subject: [PATCH] Removed cache QoS warning at exit on unsupported CPUs --- src/crypto/rx/Rx_linux.cpp | 4 +++- src/crypto/rx/Rx_win.cpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/crypto/rx/Rx_linux.cpp b/src/crypto/rx/Rx_linux.cpp index 33456333f..940360467 100644 --- a/src/crypto/rx/Rx_linux.cpp +++ b/src/crypto/rx/Rx_linux.cpp @@ -204,7 +204,9 @@ static bool wrmsr(const MsrItems& preset, const std::vector& threads, } if (cache_qos && !Cpu::info()->hasCatL3()) { - LOG_WARN(CLEAR "%s" YELLOW_BOLD_S "This CPU doesn't support cat_l3, cache QoS is unavailable", tag); + if (!threads.empty()) { + LOG_WARN(CLEAR "%s" YELLOW_BOLD_S "This CPU doesn't support cat_l3, cache QoS is unavailable", tag); + } cache_qos = false; } diff --git a/src/crypto/rx/Rx_win.cpp b/src/crypto/rx/Rx_win.cpp index 82777462a..5131c1b5f 100644 --- a/src/crypto/rx/Rx_win.cpp +++ b/src/crypto/rx/Rx_win.cpp @@ -303,7 +303,9 @@ static bool wrmsr(const MsrItems &preset, const std::vector& threads, } if (cache_qos && !Cpu::info()->hasCatL3()) { - LOG_WARN(CLEAR "%s" YELLOW_BOLD_S "This CPU doesn't support cat_l3, cache QoS is unavailable", tag); + if (!threads.empty()) { + LOG_WARN(CLEAR "%s" YELLOW_BOLD_S "This CPU doesn't support cat_l3, cache QoS is unavailable", tag); + } cache_qos = false; }