From 8109f028efbe2de023af6c57699a3583c15774dd Mon Sep 17 00:00:00 2001 From: Olav Haugan Date: Thu, 19 Jan 2017 17:14:29 -0800 Subject: [PATCH] cpumask: Correctly report CPU as not isolated in UP case When we have only 1 CPU in the system always report a CPU as not isolated. Change-Id: I009b3e7c2499da07b167c603107b1c50b096c6b6 Signed-off-by: Olav Haugan --- include/linux/cpumask.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/cpumask.h b/include/linux/cpumask.h index 0eab4811ee92..d81d6a2db342 100644 --- a/include/linux/cpumask.h +++ b/include/linux/cpumask.h @@ -113,7 +113,7 @@ extern const struct cpumask *const cpu_isolated_mask; #define cpu_possible(cpu) ((cpu) == 0) #define cpu_present(cpu) ((cpu) == 0) #define cpu_active(cpu) ((cpu) == 0) -#define cpu_isolated(cpu) ((cpu) == 0) +#define cpu_isolated(cpu) ((cpu) != 0) #endif /* verify cpu argument to cpumask_* operators */