mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 12:56:45 +07:00
b19ae39998
Change msr-reg.o to obj-y (it will be included in virtually every kernel since it is used by the initialization code for AMD processors) and add a separate C file to export its symbols to modules, so that msr.ko can use them; on uniprocessors we bypass the helper functions in msr.o and use the accessor functions directly via inlines. Signed-off-by: H. Peter Anvin <hpa@zytor.com> LKML-Reference: <20090904140834.GA15789@elte.hu> Cc: Borislav Petkov <petkovbb@googlemail.com>
6 lines
126 B
C
6 lines
126 B
C
#include <linux/module.h>
|
|
#include <asm/msr.h>
|
|
|
|
EXPORT_SYMBOL(native_rdmsr_safe_regs);
|
|
EXPORT_SYMBOL(native_wrmsr_safe_regs);
|