diff options
author | Yinghai Lu <yinghai@kernel.org> | 2010-02-10 04:20:32 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-02-17 20:23:59 -0500 |
commit | febcb0c59ac19fef2081a30e371e7af3619b5e91 (patch) | |
tree | b920a26f537df2ee736cd2690eff75baf781e7db /kernel | |
parent | 5619c28061ff9d2559a93eaba492935530f2a513 (diff) |
irq: Remove unnecessary bootmem code
mem_init is moved early already.
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
LKML-Reference: <1265793639-15071-29-git-send-email-yinghai@kernel.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/irq/handle.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c index 814940e7f485..0e823c0d1c9c 100644 --- a/kernel/irq/handle.c +++ b/kernel/irq/handle.c | |||
@@ -19,7 +19,6 @@ | |||
19 | #include <linux/kernel_stat.h> | 19 | #include <linux/kernel_stat.h> |
20 | #include <linux/rculist.h> | 20 | #include <linux/rculist.h> |
21 | #include <linux/hash.h> | 21 | #include <linux/hash.h> |
22 | #include <linux/bootmem.h> | ||
23 | #include <trace/events/irq.h> | 22 | #include <trace/events/irq.h> |
24 | 23 | ||
25 | #include "internals.h" | 24 | #include "internals.h" |
@@ -87,12 +86,8 @@ void __ref init_kstat_irqs(struct irq_desc *desc, int node, int nr) | |||
87 | { | 86 | { |
88 | void *ptr; | 87 | void *ptr; |
89 | 88 | ||
90 | if (slab_is_available()) | 89 | ptr = kzalloc_node(nr * sizeof(*desc->kstat_irqs), |
91 | ptr = kzalloc_node(nr * sizeof(*desc->kstat_irqs), | 90 | GFP_ATOMIC, node); |
92 | GFP_ATOMIC, node); | ||
93 | else | ||
94 | ptr = alloc_bootmem_node(NODE_DATA(node), | ||
95 | nr * sizeof(*desc->kstat_irqs)); | ||
96 | 91 | ||
97 | /* | 92 | /* |
98 | * don't overwite if can not get new one | 93 | * don't overwite if can not get new one |
@@ -219,10 +214,7 @@ struct irq_desc * __ref irq_to_desc_alloc_node(unsigned int irq, int node) | |||
219 | if (desc) | 214 | if (desc) |
220 | goto out_unlock; | 215 | goto out_unlock; |
221 | 216 | ||
222 | if (slab_is_available()) | 217 | desc = kzalloc_node(sizeof(*desc), GFP_ATOMIC, node); |
223 | desc = kzalloc_node(sizeof(*desc), GFP_ATOMIC, node); | ||
224 | else | ||
225 | desc = alloc_bootmem_node(NODE_DATA(node), sizeof(*desc)); | ||
226 | 218 | ||
227 | printk(KERN_DEBUG " alloc irq_desc for %d on node %d\n", irq, node); | 219 | printk(KERN_DEBUG " alloc irq_desc for %d on node %d\n", irq, node); |
228 | if (!desc) { | 220 | if (!desc) { |