Commit 87444c5
committed
OS/ThreadX: remove IRQ system state updates for SWI scheduling in SMP port
Commit 13248a2 introduced UPDATE_THREADX_SYSTEM_STATE in the normal
IRQ entry path to track per-core ISR nesting state.
However, the Nuclei RISC-V ThreadX SMP port handles scheduler switching
through the SysTimer SWI path, where ``eclic_msip_handler`` saves thread
context and ``PortThreadSwitch`` selects the next thread. The normal
``irq_entry`` path only dispatches hardware non-vector interrupts through
``JALMNXTI`` and does not need to mark ``_tx_thread_system_state`` as an
ISR nesting counter for the current scheduling model.
Keeping that update can prevent ThreadX preemption checks raised from
interrupt context from requesting a scheduler switch, because
``_tx_thread_system_state`` is non-zero while the IRQ is active. The port
already raises a SysTimer SWI for scheduling and handles that SWI after
the normal interrupt path exits, so there is no need to wait on the
IRQ-maintained system state before switching. Remove the IRQ entry
updates added by 13248a2.
Signed-off-by: Huaqi Fang <578567190@qq.com>1 parent c4c48cc commit 87444c5
2 files changed
Lines changed: 0 additions & 47 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | 18 | | |
32 | 19 | | |
33 | 20 | | |
| |||
215 | 202 | | |
216 | 203 | | |
217 | 204 | | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | 205 | | |
224 | 206 | | |
225 | 207 | | |
| |||
230 | 212 | | |
231 | 213 | | |
232 | 214 | | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | 215 | | |
239 | 216 | | |
240 | 217 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | 8 | | |
22 | 9 | | |
23 | 10 | | |
| |||
110 | 97 | | |
111 | 98 | | |
112 | 99 | | |
113 | | - | |
114 | 100 | | |
115 | 101 | | |
116 | 102 | | |
| |||
176 | 162 | | |
177 | 163 | | |
178 | 164 | | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | 165 | | |
185 | 166 | | |
186 | 167 | | |
| |||
191 | 172 | | |
192 | 173 | | |
193 | 174 | | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | 175 | | |
200 | 176 | | |
201 | 177 | | |
| |||
0 commit comments