diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Kconfig.debug | 1 | ||||
| -rw-r--r-- | lib/cpumask.c | 12 |
2 files changed, 12 insertions, 1 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 812c28207baf..6cdcf38f2da9 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
| @@ -891,7 +891,6 @@ config DYNAMIC_DEBUG | |||
| 891 | default n | 891 | default n |
| 892 | depends on PRINTK | 892 | depends on PRINTK |
| 893 | depends on DEBUG_FS | 893 | depends on DEBUG_FS |
| 894 | select PRINTK_DEBUG | ||
| 895 | help | 894 | help |
| 896 | 895 | ||
| 897 | Compiles debug level messages into the kernel, which would not | 896 | Compiles debug level messages into the kernel, which would not |
diff --git a/lib/cpumask.c b/lib/cpumask.c index 1f71b97de0f9..eb23aaa0c7b8 100644 --- a/lib/cpumask.c +++ b/lib/cpumask.c | |||
| @@ -119,6 +119,12 @@ bool alloc_cpumask_var_node(cpumask_var_t *mask, gfp_t flags, int node) | |||
| 119 | } | 119 | } |
| 120 | EXPORT_SYMBOL(alloc_cpumask_var_node); | 120 | EXPORT_SYMBOL(alloc_cpumask_var_node); |
| 121 | 121 | ||
| 122 | bool zalloc_cpumask_var_node(cpumask_var_t *mask, gfp_t flags, int node) | ||
| 123 | { | ||
| 124 | return alloc_cpumask_var_node(mask, flags | __GFP_ZERO, node); | ||
| 125 | } | ||
| 126 | EXPORT_SYMBOL(zalloc_cpumask_var_node); | ||
| 127 | |||
| 122 | /** | 128 | /** |
| 123 | * alloc_cpumask_var - allocate a struct cpumask | 129 | * alloc_cpumask_var - allocate a struct cpumask |
| 124 | * @mask: pointer to cpumask_var_t where the cpumask is returned | 130 | * @mask: pointer to cpumask_var_t where the cpumask is returned |
| @@ -135,6 +141,12 @@ bool alloc_cpumask_var(cpumask_var_t *mask, gfp_t flags) | |||
| 135 | } | 141 | } |
| 136 | EXPORT_SYMBOL(alloc_cpumask_var); | 142 | EXPORT_SYMBOL(alloc_cpumask_var); |
| 137 | 143 | ||
| 144 | bool zalloc_cpumask_var(cpumask_var_t *mask, gfp_t flags) | ||
| 145 | { | ||
| 146 | return alloc_cpumask_var(mask, flags | __GFP_ZERO); | ||
| 147 | } | ||
| 148 | EXPORT_SYMBOL(zalloc_cpumask_var); | ||
| 149 | |||
| 138 | /** | 150 | /** |
| 139 | * alloc_bootmem_cpumask_var - allocate a struct cpumask from the bootmem arena. | 151 | * alloc_bootmem_cpumask_var - allocate a struct cpumask from the bootmem arena. |
| 140 | * @mask: pointer to cpumask_var_t where the cpumask is returned | 152 | * @mask: pointer to cpumask_var_t where the cpumask is returned |
