summaryrefslogtreecommitdiffstats
path: root/arch/tile/kernel
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2014-05-07 15:44:13 +0000
committerThomas Gleixner <tglx@linutronix.de>2014-05-16 14:05:20 +0200
commit6ef40512c55b18f8fdf1074b2f2d7eadcd50fec7 (patch)
tree37b930d343fb86e9625799cf1c94a1009b0aceda /arch/tile/kernel
parent54859f59fc18e5c104a4095420b3fcef8bc3ae63 (diff)
downloadtalos-op-linux-6ef40512c55b18f8fdf1074b2f2d7eadcd50fec7.tar.gz
talos-op-linux-6ef40512c55b18f8fdf1074b2f2d7eadcd50fec7.zip
tile: Implement irq_alloc/free_hwirq() for migration
We want to convert the drivers over to the new interface and finally tile to sparse irqs. Implement irq_alloc/free_hwirq() for step by step migration. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Grant Likely <grant.likely@linaro.org> Cc: Tony Luck <tony.luck@intel.com> Cc: Peter Zijlstra <peterz@infradead.org> Acked-by: Chris Metcalf <cmetcalf@tilera.com> Link: http://lkml.kernel.org/r/20140507154336.947853241@linutronix.de Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/tile/kernel')
-rw-r--r--arch/tile/kernel/irq.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/tile/kernel/irq.c b/arch/tile/kernel/irq.c
index 906a76bdb31d..5fd197e0a2d4 100644
--- a/arch/tile/kernel/irq.c
+++ b/arch/tile/kernel/irq.c
@@ -312,4 +312,16 @@ void destroy_irq(unsigned int irq)
spin_unlock_irqrestore(&available_irqs_lock, flags);
}
EXPORT_SYMBOL(destroy_irq);
+
+unsigned int irq_alloc_hwirq(int node)
+{
+ int ret = create_irq();
+ return ret < 0 ? 0 : ret;
+}
+
+void irq_free_hwirq(unsigned int irq)
+{
+ destroy_irq(irq);
+}
+
#endif
OpenPOWER on IntegriCloud