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
14141414 * Ensure the thread adjusts the affinity once it reaches the
14151415 * thread function.
14161416 */
1417− new->thread_flags = BIT(IRQTF_AFFINITY);
1417+ set_bit(IRQTF_AFFINITY, &new->thread_flags);
14181418
14191419 return 0;
14201420 }