OSDN Git Service

timer: Convert kmalloc_node(...GFP_ZERO...) to kzalloc_node(...)
authorJoe Perches <joe@perches.com>
Fri, 15 Nov 2013 22:15:31 +0000 (14:15 -0800)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 19 Nov 2013 13:59:50 +0000 (14:59 +0100)
Use the helper function instead of __GFP_ZERO.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/timer.c

index 6582b82..accfd24 100644 (file)
@@ -1518,9 +1518,8 @@ static int init_timers_cpu(int cpu)
                        /*
                         * The APs use this path later in boot
                         */
-                       base = kmalloc_node(sizeof(*base),
-                                               GFP_KERNEL | __GFP_ZERO,
-                                               cpu_to_node(cpu));
+                       base = kzalloc_node(sizeof(*base), GFP_KERNEL,
+                                           cpu_to_node(cpu));
                        if (!base)
                                return -ENOMEM;