irq_domain: Move irq_virq_count into NOMAP revmap
authorGrant Likely <grant.likely@secretlab.ca>
Wed, 15 Feb 2012 22:06:08 +0000 (15:06 -0700)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 18 Apr 2012 14:05:35 +0000 (19:05 +0530)
commit0ef15a397c66b526f3c38c95fc3a2253cb7a5a1e
treeab4e66d97096acc988a227e6d67b26d3ef3f77f5
parent49df6a1cbaeb2516dcd860229c5b3beb28ab4544
irq_domain: Move irq_virq_count into NOMAP revmap

This patch replaces the old global setting of irq_virq_count that is only
used by the NOMAP mapping and instead uses a revmap_data property so that
the maximum NOMAP allocation can be set per NOMAP irq_domain.

There is exactly one user of irq_virq_count in-tree right now: PS3.
Also, irq_virq_count is only useful for the NOMAP mapping.  So,
instead of having a single global irq_virq_count values, this change
drops it entirely and added a max_irq argument to irq_domain_add_nomap().
That makes it a property of an individual nomap irq domain instead of
a global system settting.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Tested-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Milton Miller <miltonm@bga.com>
arch/powerpc/platforms/cell/axon_msi.c
arch/powerpc/platforms/cell/beat_interrupt.c
arch/powerpc/platforms/powermac/smp.c
arch/powerpc/platforms/ps3/interrupt.c
include/linux/irqdomain.h
kernel/irq/irqdomain.c