diff options
Diffstat (limited to 'arch/x86/oprofile')
-rw-r--r-- | arch/x86/oprofile/nmi_int.c | 2 | ||||
-rw-r--r-- | arch/x86/oprofile/op_model_amd.c | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/arch/x86/oprofile/nmi_int.c b/arch/x86/oprofile/nmi_int.c index 28ee490c1b80..93df76dd60f4 100644 --- a/arch/x86/oprofile/nmi_int.c +++ b/arch/x86/oprofile/nmi_int.c | |||
@@ -394,7 +394,7 @@ static int __init p4_init(char **cpu_type) | |||
394 | static int force_arch_perfmon; | 394 | static int force_arch_perfmon; |
395 | static int force_cpu_type(const char *str, struct kernel_param *kp) | 395 | static int force_cpu_type(const char *str, struct kernel_param *kp) |
396 | { | 396 | { |
397 | if (!strcmp(str, "archperfmon")) { | 397 | if (!strcmp(str, "arch_perfmon")) { |
398 | force_arch_perfmon = 1; | 398 | force_arch_perfmon = 1; |
399 | printk(KERN_INFO "oprofile: forcing architectural perfmon\n"); | 399 | printk(KERN_INFO "oprofile: forcing architectural perfmon\n"); |
400 | } | 400 | } |
diff --git a/arch/x86/oprofile/op_model_amd.c b/arch/x86/oprofile/op_model_amd.c index cc930467575d..e95268eb9220 100644 --- a/arch/x86/oprofile/op_model_amd.c +++ b/arch/x86/oprofile/op_model_amd.c | |||
@@ -132,7 +132,7 @@ op_amd_handle_ibs(struct pt_regs * const regs, | |||
132 | struct op_entry entry; | 132 | struct op_entry entry; |
133 | 133 | ||
134 | if (!has_ibs) | 134 | if (!has_ibs) |
135 | return 1; | 135 | return 0; |
136 | 136 | ||
137 | if (ibs_config.fetch_enabled) { | 137 | if (ibs_config.fetch_enabled) { |
138 | rdmsrl(MSR_AMD64_IBSFETCHCTL, ctl); | 138 | rdmsrl(MSR_AMD64_IBSFETCHCTL, ctl); |
@@ -214,7 +214,10 @@ static void op_amd_stop_ibs(void) | |||
214 | #else | 214 | #else |
215 | 215 | ||
216 | static inline int op_amd_handle_ibs(struct pt_regs * const regs, | 216 | static inline int op_amd_handle_ibs(struct pt_regs * const regs, |
217 | struct op_msrs const * const msrs) { } | 217 | struct op_msrs const * const msrs) |
218 | { | ||
219 | return 0; | ||
220 | } | ||
218 | static inline void op_amd_start_ibs(void) { } | 221 | static inline void op_amd_start_ibs(void) { } |
219 | static inline void op_amd_stop_ibs(void) { } | 222 | static inline void op_amd_stop_ibs(void) { } |
220 | 223 | ||