diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2016-07-24 09:26:58 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-08-18 16:04:26 +1000 |
commit | 4296082b02630ac56697fc81b13465b49db2d7b1 (patch) | |
tree | 95ca9783944a643fc9f64a7f2e9322a42b3cefd1 /core/cpu.c | |
parent | adc97f5ffcaeb6781370eb805619931581dad391 (diff) | |
download | skiboot-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |