]> 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)
commit1f8255ffef42e8ebe176a1bfcd19ccd93f4c4971
treef0211c1d015ccaa66751666b33691c9184e2a915
parentf3feffc392a21e02fd8fe508fa1858c7edf8397e
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