Skip to content

Commit

Permalink
timer: Convert kmalloc_node(...GFP_ZERO...) to kzalloc_node(...)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joe Perches authored and Thomas Gleixner committed Nov 19, 2013
1 parent d689fe2 commit da554eb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions kernel/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit da554eb

Please sign in to comment.