@@ -177,7 +177,8 @@ void cpu_process_jobs(void)
void *data;
sync();
- if (list_empty(&cpu->job_queue) && list_empty(&global_job_queue))
+ if (list_empty_nocheck(&cpu->job_queue) &&
+ list_empty_nocheck(&global_job_queue))
return;
lock(&cpu->job_lock);
@@ -230,7 +230,7 @@ void check_timers(bool from_interrupt)
/* Lockless "peek", a bit racy but shouldn't be a problem */
t = list_top(&timer_list, struct timer, link);
- if (list_empty(&timer_poll_list) && (!t || t->target > now))
+ if (list_empty_nocheck(&timer_poll_list) && (!t || t->target > now))
return;
/* Take lock and try again */
Otherwise we might trigger an assertion when list debug is enabled Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> --- core/cpu.c | 3 ++- core/timer.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-)