History

genirq: Don't overwrite interrupt thread flags on setup

Chris reported that the recent affinity management changes result in overwriting the already initialized thread flags. Use set_bit() to set the affinity bit instead of assigning the bit value to the flags.

Thomas Gleixner committed 11 months ago

Commit fbbd7ce1 parent 7dbc0d41 file · +1 −1Browse files

Unified · Split

kernel/irq/manage.c+1−1
@@ -1414,7 +1414,7 @@ setup_irq_thread(struct irqaction *new, unsigned int irq, bool secondary) · 1413 unmodified lines
1414 * Ensure the thread adjusts the affinity once it reaches the1414 * Ensure the thread adjusts the affinity once it reaches the
1415 * thread function.1415 * thread function.
1416 */1416 */
1417 new->thread_flags = BIT(IRQTF_AFFINITY);1417 set_bit(IRQTF_AFFINITY, &new->thread_flags);
1418 1418
1419 return 0;1419 return 0;
1420}1420}