OSDN Git Service

cpumask: Correctly report CPU as not isolated in UP case
authorOlav Haugan <ohaugan@codeaurora.org>
Fri, 20 Jan 2017 01:14:29 +0000 (17:14 -0800)
committerOlav Haugan <ohaugan@codeaurora.org>
Sat, 21 Jan 2017 00:49:37 +0000 (16:49 -0800)
When we have only 1 CPU in the system always report a CPU as not
isolated.

Change-Id: I009b3e7c2499da07b167c603107b1c50b096c6b6
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
include/linux/cpumask.h

index 0eab481..d81d6a2 100644 (file)
@@ -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 */