OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d689fe2
)
timer: Convert kmalloc_node(...GFP_ZERO...) to kzalloc_node(...)
author
Joe Perches
<joe@perches.com>
Fri, 15 Nov 2013 22:15:31 +0000
(14:15 -0800)
committer
Thomas 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
patch
|
blob
|
history
diff --git
a/kernel/timer.c
b/kernel/timer.c
index
6582b82
..
accfd24
100644
(file)
--- a/
kernel/timer.c
+++ b/
kernel/timer.c
@@
-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;