aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/oprofile/op_model_athlon.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/x86/oprofile/op_model_athlon.c b/arch/x86/oprofile/op_model_athlon.c
index 0d8390319797..1acb067bd343 100644
--- a/arch/x86/oprofile/op_model_athlon.c
+++ b/arch/x86/oprofile/op_model_athlon.c
@@ -361,6 +361,26 @@ static void op_amd_shutdown(struct op_msrs const * const msrs)
361 } 361 }
362} 362}
363 363
364#ifndef CONFIG_SMP
365
366/* no IBS support */
367
368static void setup_ibs(void)
369{
370 ibs_allowed = 0;
371}
372
373static void clear_ibs_nmi(void) {}
374
375static int op_amd_init(struct oprofile_operations *ops)
376{
377 return 0;
378}
379
380static void op_amd_exit(void) {}
381
382#else
383
364static u8 ibs_eilvt_off; 384static u8 ibs_eilvt_off;
365 385
366static inline void apic_init_ibs_nmi_per_cpu(void *arg) 386static inline void apic_init_ibs_nmi_per_cpu(void *arg)
@@ -505,6 +525,8 @@ static void op_amd_exit(void)
505 clear_ibs_nmi(); 525 clear_ibs_nmi();
506} 526}
507 527
528#endif
529
508struct op_x86_model_spec const op_amd_spec = { 530struct op_x86_model_spec const op_amd_spec = {
509 .init = op_amd_init, 531 .init = op_amd_init,
510 .exit = op_amd_exit, 532 .exit = op_amd_exit,