summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2015-04-16 12:33:51 +0930
committerRusty Russell <rusty@rustcorp.com.au>2015-04-16 12:33:51 +0930
commit1527781d228cd88af6c2f78c13a9cb43b3f69f30 (patch)
tree1c2e4d7e94957c8463281f71bdedeac3af8d01bc
parent3bbf7f4624856751aa4cf279a472bd14a8eb16fd (diff)
downloadop-kernel-dev-1527781d228cd88af6c2f78c13a9cb43b3f69f30.zip
op-kernel-dev-1527781d228cd88af6c2f78c13a9cb43b3f69f30.tar.gz
cpumask: resurrect CPU_MASK_CPU0
We removed it in 2f0f267ea072 (cpumask: remove deprecated functions.), but grep shows it still used by MIPS, and not unreasonably. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-rw-r--r--include/linux/cpumask.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/cpumask.h b/include/linux/cpumask.h
index 89558d0..27e285b 100644
--- a/include/linux/cpumask.h
+++ b/include/linux/cpumask.h
@@ -814,4 +814,9 @@ cpumap_print_to_pagebuf(bool list, char *buf, const struct cpumask *mask)
[0 ... BITS_TO_LONGS(NR_CPUS)-1] = 0UL \
} }
+#define CPU_MASK_CPU0 \
+(cpumask_t) { { \
+ [0] = 1UL \
+} }
+
#endif /* __LINUX_CPUMASK_H */
OpenPOWER on IntegriCloud