patch-5.15.79-rt54.patch
[platform/kernel/linux-rpi.git] / kernel / irq / manage.c
index 0c3c26f..1637211 100644 (file)
@@ -1286,6 +1286,8 @@ static int irq_thread(void *data)
 
        irq_thread_set_ready(desc, action);
 
+       sched_set_fifo(current);
+
        if (force_irqthreads() && test_bit(IRQTF_FORCED_THREAD,
                                           &action->thread_flags))
                handler_fn = irq_forced_thread_fn;
@@ -1451,8 +1453,6 @@ setup_irq_thread(struct irqaction *new, unsigned int irq, bool secondary)
        if (IS_ERR(t))
                return PTR_ERR(t);
 
-       sched_set_fifo(t);
-
        /*
         * We keep the reference to the task struct even if
         * the thread dies to avoid that the interrupt code
@@ -2846,7 +2846,7 @@ EXPORT_SYMBOL_GPL(irq_get_irqchip_state);
  *     This call sets the internal irqchip state of an interrupt,
  *     depending on the value of @which.
  *
- *     This function should be called with preemption disabled if the
+ *     This function should be called with migration disabled if the
  *     interrupt controller has per-cpu registers.
  */
 int irq_set_irqchip_state(unsigned int irq, enum irqchip_irq_state which,