[patch 06/52] genirq: Set managed shut down flag at init

Thomas Gleixner
2017-09-13T21:34:47Z

[-- Attachment #1: genirq--Set-managed-shut-down-flag-at-init.patch --]
[-- Type: text/plain, Size: 647 bytes --]

Managed interrupts should start up in managed shutdown mode. Set the status
flag when initialising the irq descriptor.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
kernel/irq/irqdesc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Index: b/kernel/irq/irqdesc.c
===================================================================
--- a/kernel/irq/irqdesc.c
+++ b/kernel/irq/irqdesc.c
@@ -448,7 +448,7 @@ static int alloc_descs(unsigned int star
}
}

- flags = affinity ? IRQD_AFFINITY_MANAGED : 0;
+ flags = affinity ? IRQD_AFFINITY_MANAGED | IRQD_MANAGED_SHUTDOWN : 0;
mask = NULL;

for (i = 0; i < cnt; i++) {