mirror of
https://github.com/rdmsr/zag.git
synced 2026-11-01 07:48:20 +00:00
ke: make getting the current thread atomic
This commit is contained in:
@@ -443,7 +443,7 @@ pub fn block(
|
||||
queue: Queue,
|
||||
) void {
|
||||
const chain = chain_for(obj);
|
||||
const curtd = kep.sched.percpu.local().current_thread.?;
|
||||
const curtd = ke.thread.current();
|
||||
const ipl = ke.ipl.current();
|
||||
|
||||
var ts = turnstile;
|
||||
|
||||
Reference in New Issue
Block a user