lkml.org 
[lkml]   [2014]   [May]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch 27/32] s390: Avoid call to irq_reserve_irqs()
There is no need to mark the lower interrupts as reserved in order to
exclude them from dynamic allocation.

Provide arch_dynirq_lower_bound() to exclude the lower space.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: linux390@de.ibm.com
---
arch/s390/kernel/irq.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)

Index: tip/arch/s390/kernel/irq.c
===================================================================
--- tip.orig/arch/s390/kernel/irq.c
+++ tip/arch/s390/kernel/irq.c
@@ -92,7 +92,6 @@ static const struct irq_class irqclass_s

void __init init_IRQ(void)
{
- irq_reserve_irqs(0, THIN_INTERRUPT);
init_cio_interrupts();
init_airq_interrupts();
init_ext_interrupts();
@@ -151,6 +150,11 @@ out:
return 0;
}

+unsigned int arch_dynirq_lower_bound(unsigned int from)
+{
+ return from < THIN_INTERRUPT ? THIN_INTERRUPT : from;
+}
+
/*
* Switch to the asynchronous interrupt stack for softirq execution.
*/



\
 
 \ /
  Last update: 2014-05-07 18:21    [W:0.426 / U:0.376 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site