History

timer: Convert kmalloc_node(...GFP_ZERO...) to kzalloc_node(...)

Use the helper function instead of __GFP_ZERO.

Joe Perches committed 12 years ago

Commit da554eb1 parent d689fe21 file · +2 −3Browse files

Showing the changes to kernel/timer.c (1 of 1 file). Show all

Unified · Split

kernel/timer.c+2−3
@@ -1518,9 +1518,8 @@ static int init_timers_cpu(int cpu) · 1517 unmodified lines
15181518 /*
15191519 * The APs use this path later in boot
15201520 */
1521− base = kmalloc_node(sizeof(*base),
1522− GFP_KERNEL | __GFP_ZERO,
1523− cpu_to_node(cpu));
1521+ base = kzalloc_node(sizeof(*base), GFP_KERNEL,
1522+ cpu_to_node(cpu));
15241523 if (!base)
15251524 return -ENOMEM;
15261525