OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cpumask, nodemask: implement cpumask/nodemask_pr_args()
[sagit-ice-cold/kernel_xiaomi_msm8998.git]
/
include
/
linux
/
cpumask.h
diff --git
a/include/linux/cpumask.h
b/include/linux/cpumask.h
index
ee9acb0
..
a9b3d00
100644
(file)
--- a/
include/linux/cpumask.h
+++ b/
include/linux/cpumask.h
@@
-22,6
+22,14
@@
typedef struct cpumask { DECLARE_BITMAP(bits, NR_CPUS); } cpumask_t;
*/
#define cpumask_bits(maskp) ((maskp)->bits)
*/
#define cpumask_bits(maskp) ((maskp)->bits)
+/**
+ * cpumask_pr_args - printf args to output a cpumask
+ * @maskp: cpumask to be printed
+ *
+ * Can be used to provide arguments for '%*pb[l]' when printing a cpumask.
+ */
+#define cpumask_pr_args(maskp) nr_cpu_ids, cpumask_bits(maskp)
+
#if NR_CPUS == 1
#define nr_cpu_ids 1
#else
#if NR_CPUS == 1
#define nr_cpu_ids 1
#else