[POWERPC] spufs: Minor cleanup of spu_wait

Change the loop in spu_wait to be a little more straightforward.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
This commit is contained in:
Jeremy Kerr 2007-04-23 21:08:24 +02:00 committed by Arnd Bergmann
parent f11f5ee70f
commit d3764397d0
1 changed files with 6 additions and 7 deletions

View File

@ -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)) { \
spu_release(ctx); \ __ret = -ERESTARTSYS; \
schedule(); \ break; \
spu_acquire(ctx); \
continue; \
} \ } \
__ret = -ERESTARTSYS; \ spu_release(ctx); \
break; \ schedule(); \
spu_acquire(ctx); \
} \ } \
finish_wait(&(wq), &__wait); \ finish_wait(&(wq), &__wait); \
__ret; \ __ret; \