diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-05-22 10:40:09 +0900 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-05-23 14:55:24 +0200 |
commit | 948cd52906baf1f92aeea2f9b5c515db1b2e592a (patch) | |
tree | a03482aebb7f8ed0b1706db8d6cd105f79ea53cc /lib/irq_regs.c | |
parent | 4c6f18fc81565967da20f2d4a3922cdba33f8e2b (diff) |
sparseirq: Allow early irq_desc allocation
Presently non-legacy IRQs have their irq_desc allocated with
kzalloc_node(). This assumes that all callers of irq_to_desc_node_alloc()
will be sufficiently late in the boot process that kmalloc is available.
While porting sparseirq support to sh this blew up immediately, as at the
time that we register the CPU's interrupt vector map only bootmem is
available. Check slab_is_available() to work out which path to use.
[ Impact: fix SH early boot crash with sparseirq enabled ]
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Acked-by: Yinghai Lu <yinghai@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Mel Gorman <mel@csn.ul.ie>
LKML-Reference: <20090522014008.GA2806@linux-sh.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'lib/irq_regs.c')
0 files changed, 0 insertions, 0 deletions