x86, cpu: Use AMD errata checking framework for erratum 383
Use the AMD errata checking framework instead of open-coding the test. Signed-off-by: Hans Rosenfeld <hans.rosenfeld@amd.com> LKML-Reference: <1280336972-865982-3-git-send-email-hans.rosenfeld@amd.com> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
This commit is contained in:
committed by
H. Peter Anvin
parent
9d8888c2a2
commit
1be85a6d93
@ -383,8 +383,7 @@ static void svm_init_erratum_383(void)
|
||||
int err;
|
||||
u64 val;
|
||||
|
||||
/* Only Fam10h is affected */
|
||||
if (boot_cpu_data.x86 != 0x10)
|
||||
if (!cpu_has_amd_erratum(amd_erratum_383))
|
||||
return;
|
||||
|
||||
/* Use _safe variants to not break nested virtualization */
|
||||
|
Reference in New Issue
Block a user