x86, msr: change msr-reg.o to obj-y, and export its symbols
authorH. Peter Anvin <hpa@zytor.com>
Fri, 4 Sep 2009 17:00:09 +0000 (10:00 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 4 Sep 2009 17:00:09 +0000 (10:00 -0700)
commitb19ae3999891cad21a3995c34d313dda5df014e2
tree6a82be9eda154f03e7cbb67f2483f54a4d596082
parent0d96b9ff748b5f57d6f1d6d21209f5745245aadc
x86, msr: change msr-reg.o to obj-y, and export its symbols

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>
arch/x86/lib/Makefile
arch/x86/lib/msr-reg-export.c [new file with mode: 0644]