提交 d3764397 编写于 作者: J Jeremy Kerr 提交者: Arnd Bergmann

[POWERPC] spufs: Minor cleanup of spu_wait

Change the loop in spu_wait to be a little more straightforward.
Signed-off-by: NJeremy Kerr <jk@ozlabs.org>
Signed-off-by: NArnd Bergmann <arnd.bergmann@de.ibm.com>
上级 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)) { \
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; \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册