aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/oprofile/op_model_amd.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/arch/x86/oprofile/op_model_amd.c b/arch/x86/oprofile/op_model_amd.c
index f71bd218b488..8ff657b3ff89 100644
--- a/arch/x86/oprofile/op_model_amd.c
+++ b/arch/x86/oprofile/op_model_amd.c
@@ -376,18 +376,7 @@ static void op_amd_shutdown(struct op_msrs const * const msrs)
376 } 376 }
377} 377}
378 378
379#ifndef CONFIG_OPROFILE_IBS 379#ifdef CONFIG_OPROFILE_IBS
380
381/* no IBS support */
382
383static int op_amd_init(struct oprofile_operations *ops)
384{
385 return 0;
386}
387
388static void op_amd_exit(void) {}
389
390#else
391 380
392static u8 ibs_eilvt_off; 381static u8 ibs_eilvt_off;
393 382
@@ -531,7 +520,18 @@ static void op_amd_exit(void)
531 clear_ibs_nmi(); 520 clear_ibs_nmi();
532} 521}
533 522
534#endif 523#else
524
525/* no IBS support */
526
527static int op_amd_init(struct oprofile_operations *ops)
528{
529 return 0;
530}
531
532static void op_amd_exit(void) {}
533
534#endif /* CONFIG_OPROFILE_IBS */
535 535
536struct op_x86_model_spec const op_amd_spec = { 536struct op_x86_model_spec const op_amd_spec = {
537 .init = op_amd_init, 537 .init = op_amd_init,