OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74e7bd5
)
cpumask: Correctly report CPU as not isolated in UP case
author
Olav Haugan
<ohaugan@codeaurora.org>
Fri, 20 Jan 2017 01:14:29 +0000
(17:14 -0800)
committer
Olav 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
patch
|
blob
|
history
diff --git
a/include/linux/cpumask.h
b/include/linux/cpumask.h
index
0eab481
..
d81d6a2
100644
(file)
--- 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 */