]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kernel/timer.c: convert kmalloc_node(...GFP_ZERO...) to kzalloc_node(...)
authorJoe Perches <joe@perches.com>
Tue, 5 Nov 2013 05:54:54 +0000 (16:54 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 5 Nov 2013 05:54:54 +0000 (16:54 +1100)
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>
kernel/timer.c

index 4296d13db3d15876f320070caee26c9a6ff06e6d..fab8eac627dbab7283e999f9760f21dc298048c5 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;