diff options
Diffstat (limited to 'include/linux/cpumask.h')
-rw-r--r-- | include/linux/cpumask.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/cpumask.h b/include/linux/cpumask.h index ee9acb0ce542..a9b3d00915a0 100644 --- a/include/linux/cpumask.h +++ b/include/linux/cpumask.h | |||
@@ -22,6 +22,14 @@ typedef struct cpumask { DECLARE_BITMAP(bits, NR_CPUS); } cpumask_t; | |||
22 | */ | 22 | */ |
23 | #define cpumask_bits(maskp) ((maskp)->bits) | 23 | #define cpumask_bits(maskp) ((maskp)->bits) |
24 | 24 | ||
25 | /** | ||
26 | * cpumask_pr_args - printf args to output a cpumask | ||
27 | * @maskp: cpumask to be printed | ||
28 | * | ||
29 | * Can be used to provide arguments for '%*pb[l]' when printing a cpumask. | ||
30 | */ | ||
31 | #define cpumask_pr_args(maskp) nr_cpu_ids, cpumask_bits(maskp) | ||
32 | |||
25 | #if NR_CPUS == 1 | 33 | #if NR_CPUS == 1 |
26 | #define nr_cpu_ids 1 | 34 | #define nr_cpu_ids 1 |
27 | #else | 35 | #else |