Skip to content

Commit

Permalink
kernel: fix incorrect identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
Qix- committed Jan 15, 2025
1 parent 9a1b998 commit 14934c6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions oro-kernel/src/scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,10 @@ impl<A: Arch> Scheduler<A> {
let mut t = thread.lock();

let response = {
if let Some(instance) = t.instance().lock().ring().upgrade() {
let instance_lock = instance.lock();
let registry = instance_lock.registry();
// TODO(qix-): use a deeper cache than the ring's
if let Some(ring) = t.instance().lock().ring().upgrade() {
let ring_lock = ring.lock();
let registry = ring_lock.registry();
let mut registry_lock = registry.lock();
registry_lock.dispatch(&thread, request)
} else {
Expand Down

0 comments on commit 14934c6

Please sign in to comment.