ke/smr: add support for preemptible SMR

This commit is contained in:
Loïc Grégoire
2026-07-23 16:39:43 -04:00
parent e4621e03c1
commit a969624f20
4 changed files with 233 additions and 13 deletions
+6
View File
@@ -126,6 +126,12 @@ fn dispatch_queue(cpu: u32) void {
ki.shootdown.process_shootdowns();
if (sched_cpu.next_thread != null) {
const curtd = sched_cpu.current_thread.?;
if (!curtd.smr_sections.is_empty()) {
ki.smr.mark_thread_stalled(curtd);
}
ki.sched.handle_preemption(sched_cpu);
}