aboutsummaryrefslogtreecommitdiff
path: root/core/cpu.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2016-07-24 09:26:58 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-08-18 16:04:26 +1000
commit4296082b02630ac56697fc81b13465b49db2d7b1 (patch)
tree95ca9783944a643fc9f64a7f2e9322a42b3cefd1 /core/cpu.c
parentadc97f5ffcaeb6781370eb805619931581dad391 (diff)
downloadskiboot-4296082b02630ac56697fc81b13465b49db2d7b1.zip
skiboot-4296082b02630ac56697fc81b13465b49db2d7b1.tar.gz
skiboot-4296082b02630ac56697fc81b13465b49db2d7b1.tar.bz2
list: Use list_empty_nocheck() when checking a list racily
Otherwise we might trigger an assertion when list debug is enabled Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/cpu.c')
-rw-r--r--core/cpu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/cpu.c b/core/cpu.c
index 35328e5..f407b46 100644
--- a/core/cpu.c
+++ b/core/cpu.c
@@ -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);