linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] kernel/cpu.c: use zalloc_cpumask_var() in alloc_frozen_cpus()
@ 2016-03-14 14:54 Geliang Tang
  0 siblings, 0 replies; only message in thread
From: Geliang Tang @ 2016-03-14 14:54 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, Peter Zijlstra, Oleg Nesterov,
	Paul E. McKenney
  Cc: Geliang Tang, Rasmus Villemoes, linux-kernel

Use zalloc_cpumask_var() instead of alloc_cpumask_var() with flag
GFP_ZERO.

Signed-off-by: Geliang Tang <geliangtang@163.com>
---
 kernel/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/cpu.c b/kernel/cpu.c
index bcee286..74cd8d3 100644
--- a/kernel/cpu.c
+++ b/kernel/cpu.c
@@ -1101,7 +1101,7 @@ out:
 
 static int __init alloc_frozen_cpus(void)
 {
-	if (!alloc_cpumask_var(&frozen_cpus, GFP_KERNEL|__GFP_ZERO))
+	if (!zalloc_cpumask_var(&frozen_cpus, GFP_KERNEL))
 		return -ENOMEM;
 	return 0;
 }
-- 
2.5.0

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-03-14 14:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-14 14:54 [PATCH] kernel/cpu.c: use zalloc_cpumask_var() in alloc_frozen_cpus() Geliang Tang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).