summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/msr.h
diff options
context:
space:
mode:
authorBorislav Petkov <borislav.petkov@amd.com>2009-05-22 12:12:01 +0200
committerBorislav Petkov <borislav.petkov@amd.com>2009-06-10 12:18:42 +0200
commit6bc1096d7ab3621b3ffcf06616d1f4e0325d903d (patch)
tree286d1e4545fbd69c25fb4a5044d1d51122169a1d /arch/x86/include/asm/msr.h
parentLinux 2.6.30 (diff)
downloadlinux-6bc1096d7ab3621b3ffcf06616d1f4e0325d903d.tar.xz
linux-6bc1096d7ab3621b3ffcf06616d1f4e0325d903d.zip
x86: MSR: add a struct representation of an MSR
Add a struct representing a 64bit MSR pair consisting of a low and high register part and convert msr_info to use it. Also, rename msr-on-cpu.c to msr.c. Side note: Put the cpumask.h include in __KERNEL__ space thus fixing an allmodconfig build failure in the headers_check target. CC: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Diffstat (limited to 'arch/x86/include/asm/msr.h')
-rw-r--r--arch/x86/include/asm/msr.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/x86/include/asm/msr.h b/arch/x86/include/asm/msr.h
index 638bf6241807..5e1213216e2b 100644
--- a/arch/x86/include/asm/msr.h
+++ b/arch/x86/include/asm/msr.h
@@ -12,6 +12,17 @@
#include <asm/asm.h>
#include <asm/errno.h>
+#include <asm/cpumask.h>
+
+struct msr {
+ union {
+ struct {
+ u32 l;
+ u32 h;
+ };
+ u64 q;
+ };
+};
static inline unsigned long long native_read_tscp(unsigned int *aux)
{