]> xenbits.xensource.com Git - people/ssmith/nc2-2.6.27.git/commitdiff
patch fix_domain_switch_code
authorSteven Smith <ssmith@weybridge.uk.xensource.com>
Tue, 30 Jun 2009 11:55:47 +0000 (12:55 +0100)
committerSteven Smith <ssmith@weybridge.uk.xensource.com>
Tue, 30 Jun 2009 11:55:47 +0000 (12:55 +0100)
include/linux/oprofile.h

index bb8a3494accb5aa643c8eb61c2fce314dca26ce3..44a213819edeb0b72e3d91027f90fe40b961c302 100644 (file)
 #define TRACE_BEGIN_CODE               8
 #define TRACE_END_CODE                 9
 #define XEN_ENTER_SWITCH_CODE          10
+/*
+ * Ugly work-around for the unfortunate collision between Xenoprof's
+ * DOMAIN_SWITCH_CODE (in use on x86 and ia64) and Cell's SPU_PROFILING_CODE
+ * (in use with Power):
+ */
+#if defined(CONFIG_X86_32) || defined(CONFIG_X86_64) || defined(CONFIG_IA64) 
+#define DOMAIN_SWITCH_CODE             11
+#else
 #define SPU_PROFILING_CODE             11
 #define SPU_CTX_SWITCH_CODE            12
 #define DOMAIN_SWITCH_CODE             13
+#endif
 
 struct super_block;
 struct dentry;