diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-08-06 15:42:49 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-08-06 15:42:49 +0100 |
commit | cb63a9960f248d55c6e424d82a680522288cde67 (patch) | |
tree | 83a838699908beb4923c1319fc7776fe67e40852 /xen/arch/x86/oprofile | |
parent | e5013d10206c7d9e73ff892bd58bb8fec7ea408f (diff) | |
download | xen-cb63a9960f248d55c6e424d82a680522288cde67.tar.gz xen-cb63a9960f248d55c6e424d82a680522288cde67.tar.bz2 xen-cb63a9960f248d55c6e424d82a680522288cde67.zip |
xenoprofile: Disable IBS on x86_32
Extended PCI configuration space is not accessible on 32 bit
systems. This patch disables IBS feature on 32 bit to avoid
IBSCTL(0x1cc) accesses.
Signed-off-by: Wei Wang <wei.wang2@amd.com>
Diffstat (limited to 'xen/arch/x86/oprofile')
-rw-r--r-- | xen/arch/x86/oprofile/op_model_athlon.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xen/arch/x86/oprofile/op_model_athlon.c b/xen/arch/x86/oprofile/op_model_athlon.c index d115849930..8d83b01e31 100644 --- a/xen/arch/x86/oprofile/op_model_athlon.c +++ b/xen/arch/x86/oprofile/op_model_athlon.c @@ -475,6 +475,9 @@ static int init_ibs_nmi(void) static u32 get_ibs_caps(void) { +#ifdef CONFIG_X86_32 + return 0; +#else unsigned int max_level; if (!boot_cpu_has(X86_FEATURE_IBS)) @@ -491,6 +494,7 @@ static u32 get_ibs_caps(void) return IBS_CAPS_AVAIL; return ibs_caps; +#endif } u32 ibs_init(void) |