diff options
author | Robert Richter <robert.richter@amd.com> | 2009-05-25 12:16:43 -0400 |
---|---|---|
committer | Robert Richter <robert.richter@amd.com> | 2009-06-11 13:42:13 -0400 |
commit | 9c59354b48ce9cf28048b02fea73dd0236f876ea (patch) | |
tree | e12953a149af4624e7b1929c60d6afb31e09feea /arch/x86/oprofile | |
parent | ec064c093e254f4433afb17dcef7f964c76436af (diff) |
x86/oprofile: remove unused macros for AMD virtualization profiling
The use of the macros has no effect. The oprofilefs has to be extended
first to support these features.
Signed-off-by: Robert Richter <robert.richter@amd.com>
Diffstat (limited to 'arch/x86/oprofile')
-rw-r--r-- | arch/x86/oprofile/op_model_amd.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/x86/oprofile/op_model_amd.c b/arch/x86/oprofile/op_model_amd.c index c6181c265ae0..aaa7ffaed6b9 100644 --- a/arch/x86/oprofile/op_model_amd.c +++ b/arch/x86/oprofile/op_model_amd.c | |||
@@ -31,8 +31,6 @@ | |||
31 | #define CTRL_CLEAR_HI(x) (x &= 0xfffffcf0) | 31 | #define CTRL_CLEAR_HI(x) (x &= 0xfffffcf0) |
32 | #define CTRL_SET_EVENT_LOW(val, e) (val |= (e & 0xff)) | 32 | #define CTRL_SET_EVENT_LOW(val, e) (val |= (e & 0xff)) |
33 | #define CTRL_SET_EVENT_HIGH(val, e) (val |= ((e >> 8) & 0xf)) | 33 | #define CTRL_SET_EVENT_HIGH(val, e) (val |= ((e >> 8) & 0xf)) |
34 | #define CTRL_SET_HOST_ONLY(val, h) (val |= ((h & 1) << 9)) | ||
35 | #define CTRL_SET_GUEST_ONLY(val, h) (val |= ((h & 1) << 8)) | ||
36 | 34 | ||
37 | static unsigned long reset_value[NUM_COUNTERS]; | 35 | static unsigned long reset_value[NUM_COUNTERS]; |
38 | 36 | ||
@@ -125,9 +123,6 @@ static void op_amd_setup_ctrs(struct op_msrs const * const msrs) | |||
125 | CTRL_SET_UM(low, counter_config[i].unit_mask); | 123 | CTRL_SET_UM(low, counter_config[i].unit_mask); |
126 | CTRL_SET_EVENT_LOW(low, counter_config[i].event); | 124 | CTRL_SET_EVENT_LOW(low, counter_config[i].event); |
127 | CTRL_SET_EVENT_HIGH(high, counter_config[i].event); | 125 | CTRL_SET_EVENT_HIGH(high, counter_config[i].event); |
128 | CTRL_SET_HOST_ONLY(high, 0); | ||
129 | CTRL_SET_GUEST_ONLY(high, 0); | ||
130 | |||
131 | wrmsr(msrs->controls[i].addr, low, high); | 126 | wrmsr(msrs->controls[i].addr, low, high); |
132 | } else { | 127 | } else { |
133 | reset_value[i] = 0; | 128 | reset_value[i] = 0; |