diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2009-07-29 15:38:00 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 12:01:53 -0700 |
commit | 4a66384567dfa68fb0bf6604842b1262e601d4a2 (patch) | |
tree | afd64a5752d372d4269eeb3d6d278c2b08a20a8f /drivers/staging/hv/include/osd.h | |
parent | f931a70c370cc826191a51a79500b34cd592b25b (diff) |
Staging: hv: remove custom rdmsrl and wrmsrl functions
Use the ones that the kernel provides, they do it correctly.
Cc: Bill Pemberton <wfp5p@virginia.edu>
Cc: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/include/osd.h')
-rw-r--r-- | drivers/staging/hv/include/osd.h | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/drivers/staging/hv/include/osd.h b/drivers/staging/hv/include/osd.h index 0444c18990d..a3e2e29cf33 100644 --- a/drivers/staging/hv/include/osd.h +++ b/drivers/staging/hv/include/osd.h @@ -66,41 +66,6 @@ struct osd_timer { }; - -#ifdef __x86_64__ - -#define RDMSR(reg, v) { \ - u32 h, l; \ - __asm__ __volatile__("rdmsr" \ - : "=a" (l), "=d" (h) \ - : "c" (reg)); \ - v = (((u64)h) << 32) | l; \ -} - -#define WRMSR(reg, v) { \ - u32 h, l; \ - l = (u32)(((u64)(v)) & 0xFFFFFFFF); \ - h = (u32)((((u64)(v)) >> 32) & 0xFFFFFFFF); \ - __asm__ __volatile__("wrmsr" \ - : /* no outputs */ \ - : "c" (reg), "a" (l), "d" (h)); \ -} - -#else - -#define RDMSR(reg, v) \ - __asm__ __volatile__("rdmsr" \ - : "=A" (v) \ - : "c" (reg)) - -#define WRMSR(reg, v) \ - __asm__ __volatile__("wrmsr" \ - : /* no outputs */ \ - : "c" (reg), "A" ((u64)v)) - -#endif - - /* Osd routines */ extern void* VirtualAllocExec(unsigned int size); |