Commit 25b9f4d
Fix no-SMP scheduler watchdog slot selection
The scheduler watchdog only needs a slot index, and on no-SMP builds
that slot is always 0. Keep smp_scheduler_id() as an SMP-only API and
choose slot 0 locally in scheduler.c instead of providing a no-SMP
stub in smp.h.
This fixes no-SMP builds without adding a GlobalContext typedef or
watchdog-specific fallback to the SMP abstraction.
Signed-off-by: Peter M <petermm@gmail.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019cffb9-55d6-70d2-8382-88fd927bdc77
Co-authored-by: Amp <amp@ampcode.com>1 parent 3d7409f commit 25b9f4d
2 files changed
+14
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
| 63 | + | |
63 | 64 | | |
64 | | - | |
65 | | - | |
66 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
67 | 75 | | |
68 | 76 | | |
69 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
269 | | - | |
| 268 | + | |
| 269 | + | |
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | 301 | | |
307 | 302 | | |
308 | 303 | | |
0 commit comments