Commit d3764397 authored by Jeremy Kerr's avatar Jeremy Kerr Committed by Arnd Bergmann

[POWERPC] spufs: Minor cleanup of spu_wait

Change the loop in spu_wait to be a little more straightforward.
Signed-off-by: default avatarJeremy Kerr <jk@ozlabs.org>
Signed-off-by: default avatarArnd Bergmann <arnd.bergmann@de.ibm.com>
parent f11f5ee7
...@@ -223,14 +223,13 @@ extern char *isolated_loader; ...@@ -223,14 +223,13 @@ extern char *isolated_loader;
prepare_to_wait(&(wq), &__wait, TASK_INTERRUPTIBLE); \ prepare_to_wait(&(wq), &__wait, TASK_INTERRUPTIBLE); \
if (condition) \ if (condition) \
break; \ break; \
if (!signal_pending(current)) { \ if (signal_pending(current)) { \
__ret = -ERESTARTSYS; \
break; \
} \
spu_release(ctx); \ spu_release(ctx); \
schedule(); \ schedule(); \
spu_acquire(ctx); \ spu_acquire(ctx); \
continue; \
} \
__ret = -ERESTARTSYS; \
break; \
} \ } \
finish_wait(&(wq), &__wait); \ finish_wait(&(wq), &__wait); \
__ret; \ __ret; \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment