Commit ff67db0
mfd: rp1: fix IRQ thread affinity on PREEMPT_RT
rp1_irq_set_affinity() delegates to msi_domain_set_affinity() but
does not call irq_data_update_effective_affinity() and does not
return IRQ_SET_MASK_OK_DONE. Without this, the generic IRQ core
never calls irq_set_thread_affinity(), so on PREEMPT_RT the
force-threaded handler remains pinned to its original CPU even
though the hardware interrupt is steered correctly.
This causes PPS timestamps to be captured on a non-isolated CPU,
adding variable latency to precision timing applications.
Fix by updating the effective affinity and returning
IRQ_SET_MASK_OK_DONE on success.
Fixes: #7301
Signed-off-by: Michael Byczkowski <by@by-online.de>1 parent 23d84d1 commit ff67db0
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
148 | 149 | | |
149 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
150 | 156 | | |
151 | 157 | | |
152 | 158 | | |
| |||
0 commit comments