Skip to content

Commit

Permalink
cpumask: resurrect CPU_MASK_CPU0
Browse files Browse the repository at this point in the history
We removed it in 2f0f267 (cpumask: remove deprecated functions.),
but grep shows it still used by MIPS, and not unreasonably.

Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
rustyrussell committed Apr 16, 2015
1 parent 3bbf7f4 commit 1527781
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/linux/cpumask.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 1527781

Please sign in to comment.