]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
feat: SMP load balancing for fork/clone + IPI resched
authorTulio A M Mendes <[email protected]>
Mon, 16 Feb 2026 21:08:55 +0000 (18:08 -0300)
committerTulio A M Mendes <[email protected]>
Mon, 16 Feb 2026 21:08:55 +0000 (18:08 -0300)
commit93e8030e622922300557efa24600530521d8cec2
treecff445edd2acadc083fb88fc884e8f587a4c3293
parenta4575de23d375a5fb5363a920afc118d4e20106a
feat: SMP load balancing for fork/clone + IPI resched

Enable load balancing in process_fork_create and process_clone_create:
both now dispatch to the least-loaded CPU via sched_pcpu_least_loaded().

All three process creation functions (create_kernel, fork, clone) now
send IPI_RESCHED to the target CPU after releasing sched_lock, waking
idle APs immediately when work is enqueued to their runqueue.

83/83 smoke tests pass in 9s, cppcheck clean.
src/kernel/scheduler.c