diff options
author | Keir Fraser <keir@xen.org> | 2010-11-04 16:36:37 +0000 |
---|---|---|
committer | Keir Fraser <keir@xen.org> | 2010-11-04 16:36:37 +0000 |
commit | 0cd09703b178259c90832e4393ac8315ae340f2f (patch) | |
tree | 9336d6f56f7cd19099e813e2632a106fc46db0bb /xen/include/asm-x86/xenoprof.h | |
parent | c8bb5635dea2d4fa46a2e513e5bca1c646fa622d (diff) | |
download | xen-0cd09703b178259c90832e4393ac8315ae340f2f.tar.gz xen-0cd09703b178259c90832e4393ac8315ae340f2f.tar.bz2 xen-0cd09703b178259c90832e4393ac8315ae340f2f.zip |
x86: clean up AMD Fam10 xenoprof IBS code
Arrange for (almost) no code to be generated for x86-32, where the
functionality is disabled anyway. Properly __init-annotate the code.
Remove some pointless bits.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/include/asm-x86/xenoprof.h')
-rw-r--r-- | xen/include/asm-x86/xenoprof.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xen/include/asm-x86/xenoprof.h b/xen/include/asm-x86/xenoprof.h index 8431379d95..f98b76e378 100644 --- a/xen/include/asm-x86/xenoprof.h +++ b/xen/include/asm-x86/xenoprof.h @@ -48,8 +48,13 @@ struct vcpu; struct cpu_user_regs; /* AMD IBS support */ -u32 ibs_init(void); +#ifdef CONFIG_X86_64 +void ibs_init(void); extern u32 ibs_caps; +#else +static inline void ibs_init(void) {} +#define ibs_caps 0 +#endif int xenoprofile_get_mode(struct vcpu *v, struct cpu_user_regs * const regs); |