diff options
Diffstat (limited to 'core/timebase.c')
-rw-r--r-- | core/timebase.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/timebase.c b/core/timebase.c index f2dff44..777e4ba 100644 --- a/core/timebase.c +++ b/core/timebase.c @@ -53,7 +53,7 @@ void time_wait(unsigned long duration) { struct cpu_thread *c = this_cpu(); - if (this_cpu()->lock_depth) { + if (!list_empty(&this_cpu()->locks_held)) { time_wait_nopoll(duration); return; } |