aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/cpumask.h
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 /include/linux/cpumask.h
parentlinux/cpumask.h: add typechecking to cpumask_test_cpu (diff)
downloadlinux-dev-1527781d228cd88af6c2f78c13a9cb43b3f69f30.tar.xz
linux-dev-1527781d228cd88af6c2f78c13a9cb43b3f69f30.zip
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>
Diffstat (limited to 'include/linux/cpumask.h')
-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 89558d0b56ac..27e285b92b5f 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 */