Skip to content

Commit

Permalink
x86, cpu: Export AMD errata definitions
Browse files Browse the repository at this point in the history
Exprot the AMD errata definitions, since they are needed by kvm_amd.ko
if that is built as a module.  Doing "make allmodconfig" during
testing would have caught this.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Cc: Hans Rosenfeld <hans.rosenfeld@amd.com>
LKML-Reference: <1280336972-865982-1-git-send-email-hans.rosenfeld@amd.com>
  • Loading branch information
H. Peter Anvin committed Jul 28, 2010
1 parent 1be85a6 commit a5b9160
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/x86/kernel/cpu/amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -631,9 +631,11 @@ cpu_dev_register(amd_cpu_dev);
const int amd_erratum_400[] =
AMD_OSVW_ERRATUM(1, AMD_MODEL_RANGE(0xf, 0x41, 0x2, 0xff, 0xf),
AMD_MODEL_RANGE(0x10, 0x2, 0x1, 0xff, 0xf));
EXPORT_SYMBOL_GPL(amd_erratum_400);

const int amd_erratum_383[] =
AMD_OSVW_ERRATUM(3, AMD_MODEL_RANGE(0x10, 0, 0, 0xff, 0xf));
EXPORT_SYMBOL_GPL(amd_erratum_383);

bool cpu_has_amd_erratum(const int *erratum)
{
Expand Down Expand Up @@ -676,3 +678,5 @@ bool cpu_has_amd_erratum(const int *erratum)

return false;
}

EXPORT_SYMBOL_GPL(cpu_has_amd_erratum);

0 comments on commit a5b9160

Please sign in to comment.