aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorRobert Richter <robert.richter@amd.com>2008-07-22 15:09:02 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-26 05:48:10 -0400
commita4c408a41167949f820e2740e56a8f2f7bb6177c (patch)
tree7b11ed0d41f215a13367ad4b45d63d34982c3b19 /arch/x86
parent270d3e1a10e6ef85d5a085377e01d91dbcbe3726 (diff)
OProfile: fix IBS build error for UP
Signed-off-by: Robert Richter <robert.richter@amd.com> Cc: oprofile-list <oprofile-list@lists.sourceforge.net> Cc: Barry Kasindorf <barry.kasindorf@amd.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86')
-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,