mirror of
https://github.com/rdmsr/zag.git
synced 2026-10-29 22:48:20 +00:00
ke/smr: add support for preemptible SMR
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user