aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/mips/oprofile/op_model_mipsxx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/oprofile/op_model_mipsxx.c b/arch/mips/oprofile/op_model_mipsxx.c
index 1fd361462c03..e4b1140cdae0 100644
--- a/arch/mips/oprofile/op_model_mipsxx.c
+++ b/arch/mips/oprofile/op_model_mipsxx.c
@@ -41,7 +41,7 @@ static int (*save_perf_irq)(void);
41 * first hardware thread in the core for setup and init. 41 * first hardware thread in the core for setup and init.
42 * Skip CPUs with non-zero hardware thread id (4 hwt per core) 42 * Skip CPUs with non-zero hardware thread id (4 hwt per core)
43 */ 43 */
44#ifdef CONFIG_CPU_XLR 44#if defined(CONFIG_CPU_XLR) && defined(CONFIG_SMP)
45#define oprofile_skip_cpu(c) ((cpu_logical_map(c) & 0x3) != 0) 45#define oprofile_skip_cpu(c) ((cpu_logical_map(c) & 0x3) != 0)
46#else 46#else
47#define oprofile_skip_cpu(c) 0 47#define oprofile_skip_cpu(c) 0