Removed cache QoS warning at exit on unsupported CPUs

This commit is contained in:
SChernykh 2020-07-13 20:43:49 +02:00
parent 72c385c870
commit 1bf159d1e8
2 changed files with 6 additions and 2 deletions

View file

@ -204,7 +204,9 @@ static bool wrmsr(const MsrItems& preset, const std::vector<CpuThread>& threads,
} }
if (cache_qos && !Cpu::info()->hasCatL3()) { 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; cache_qos = false;
} }

View file

@ -303,7 +303,9 @@ static bool wrmsr(const MsrItems &preset, const std::vector<CpuThread>& threads,
} }
if (cache_qos && !Cpu::info()->hasCatL3()) { 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; cache_qos = false;
} }