diff options
author | Sheng Yang <sheng@linux.intel.com> | 2009-12-16 13:48:04 +0800 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-12-16 09:02:42 +0100 |
commit | 5df974009fe513c664303de24725ea0f8b47f12e (patch) | |
tree | 3c9ac77ed3691fd9f7d2ec620fea6cb46828ee30 /arch/x86/include/asm/msr.h | |
parent | 0b962d473af32ec334df271b54ff4973cb2b4c73 (diff) | |
download | linux-stable-5df974009fe513c664303de24725ea0f8b47f12e.tar.gz linux-stable-5df974009fe513c664303de24725ea0f8b47f12e.tar.bz2 linux-stable-5df974009fe513c664303de24725ea0f8b47f12e.zip |
x86: Add IA32_TSC_AUX MSR and use it
Clean up write_tsc() and write_tscp_aux() by replacing
hardcoded values.
No change in functionality.
Signed-off-by: Sheng Yang <sheng@linux.intel.com>
Cc: Avi Kivity <avi@redhat.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
LKML-Reference: <1260942485-19156-4-git-send-email-sheng@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/include/asm/msr.h')
-rw-r--r-- | arch/x86/include/asm/msr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/include/asm/msr.h b/arch/x86/include/asm/msr.h index 2d228fc9b4b7..cf985aa00660 100644 --- a/arch/x86/include/asm/msr.h +++ b/arch/x86/include/asm/msr.h @@ -240,9 +240,9 @@ do { \ #define checking_wrmsrl(msr, val) wrmsr_safe((msr), (u32)(val), \ (u32)((val) >> 32)) -#define write_tsc(val1, val2) wrmsr(0x10, (val1), (val2)) +#define write_tsc(val1, val2) wrmsr(MSR_IA32_TSC, (val1), (val2)) -#define write_rdtscp_aux(val) wrmsr(0xc0000103, (val), 0) +#define write_rdtscp_aux(val) wrmsr(MSR_TSC_AUX, (val), 0) struct msr *msrs_alloc(void); void msrs_free(struct msr *msrs); |