original_kernel/arch/powerpc/platforms/pseries
Sebastien Dugue 967e012ef3 powerpc: Separate the irq radix tree insertion and lookup
irq_radix_revmap() currently serves 2 purposes, irq mapping lookup
and insertion which happen in interrupt and process context respectively.

Separate the function into its 2 components, one for lookup only and one
for insertion only.

Fix the only user of the revmap tree (XICS) to use the new functions.

Also, move the insertion into the radix tree of those irqs that were
requested before it was initialized at said tree initialization.

Mutual exclusion between the tree initialization and readers/writers is
handled via a state variable (revmap_trees_allocated) set to 1 when the tree
has been initialized and set to 2 after the already requested irqs have been
inserted in the tree by the init path. This state is checked before any reader
or writer access just like we used to check for tree.gfp_mask != 0 before.

Finally, now that we're not any longer inserting nodes into the radix-tree
in interrupt context, turn the GFP_ATOMIC allocations into GFP_KERNEL ones.

Signed-off-by: Sebastien Dugue <sebastien.dugue@bull.net>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2008-09-15 11:08:44 -07:00
..
Kconfig
Makefile
cmm.c powerpc: Replace __FUNCTION__ with __func__ 2008-08-20 16:34:57 +10:00
eeh.c
eeh_cache.c
eeh_driver.c powerpc: Guard print_device_node_tree() with #if 0 2008-08-20 16:34:57 +10:00
eeh_event.c
eeh_sysfs.c
firmware.c
hotplug-cpu.c
hotplug-memory.c
hvCall.S
hvCall_inst.c
hvconsole.c
hvcserver.c
iommu.c
kexec.c
lpar.c
msi.c
nvram.c
pci.c
pci_dlpar.c
phyp_dump.c
plpar_wrappers.h powerpc: Fix CMM page loaning on 64k page kernel with 4k hardware pages 2008-08-18 14:22:35 +10:00
power.c
pseries.h
ras.c
reconfig.c powerpc: Check rc of notifier chain for memory remove 2008-09-15 11:07:52 -07:00
rtasd.c
scanlog.c
setup.c powerpc: Export CMO_PageSize 2008-08-26 10:24:47 +10:00
smp.c
xics.c powerpc: Separate the irq radix tree insertion and lookup 2008-09-15 11:08:44 -07:00
xics.h