ソースを参照

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>
Rusty Russell 10 年 前
コミット
1527781d22
1 ファイル変更5 行追加0 行削除
  1. 5 0
      include/linux/cpumask.h

+ 5 - 0
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 */