fix: hide arch_capabilities_msr_not_read warning under !intel

This commit is contained in:
Stéphane Lesimple 2018-08-13 15:42:56 +02:00
parent 5f59257826
commit 360be7b35f

View File

@ -1208,7 +1208,7 @@ is_skylake_cpu()
is_vulnerable_to_empty_rsb()
{
if [ -z "$capabilities_rsba" ]; then
if is_intel && [ -z "$capabilities_rsba" ]; then
_warn "is_vulnerable_to_empty_rsb() called before ARCH CAPABILITIES MSR was read"
fi
if is_skylake_cpu || [ "$capabilities_rsba" = 1 ]; then