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>
This commit is contained in:
parent
270d3e1a10
commit
a4c408a411
1 changed files with 22 additions and 0 deletions
|
@ -361,6 +361,26 @@ static void op_amd_shutdown(struct op_msrs const * const msrs)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef CONFIG_SMP
|
||||||
|
|
||||||
|
/* no IBS support */
|
||||||
|
|
||||||
|
static void setup_ibs(void)
|
||||||
|
{
|
||||||
|
ibs_allowed = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static void clear_ibs_nmi(void) {}
|
||||||
|
|
||||||
|
static int op_amd_init(struct oprofile_operations *ops)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static void op_amd_exit(void) {}
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
static u8 ibs_eilvt_off;
|
static u8 ibs_eilvt_off;
|
||||||
|
|
||||||
static inline void apic_init_ibs_nmi_per_cpu(void *arg)
|
static inline void apic_init_ibs_nmi_per_cpu(void *arg)
|
||||||
|
@ -505,6 +525,8 @@ static void op_amd_exit(void)
|
||||||
clear_ibs_nmi();
|
clear_ibs_nmi();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
struct op_x86_model_spec const op_amd_spec = {
|
struct op_x86_model_spec const op_amd_spec = {
|
||||||
.init = op_amd_init,
|
.init = op_amd_init,
|
||||||
.exit = op_amd_exit,
|
.exit = op_amd_exit,
|
||||||
|
|
Loading…
Add table
Reference in a new issue