diff options
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/run.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/run.c b/arch/powerpc/platforms/cell/spufs/run.c index 1be4e3339d8e..1acc2ffef8c8 100644 --- a/arch/powerpc/platforms/cell/spufs/run.c +++ b/arch/powerpc/platforms/cell/spufs/run.c | |||
@@ -350,12 +350,10 @@ out2: | |||
350 | (status >> SPU_STOP_STATUS_SHIFT != 0x2104))))) | 350 | (status >> SPU_STOP_STATUS_SHIFT != 0x2104))))) |
351 | ret = status; | 351 | ret = status; |
352 | 352 | ||
353 | if (unlikely(current->ptrace & PT_PTRACED)) { | 353 | if ((status & SPU_STATUS_STOPPED_BY_STOP) |
354 | if ((status & SPU_STATUS_STOPPED_BY_STOP) | 354 | && (status >> SPU_STOP_STATUS_SHIFT) == 0x3fff) { |
355 | && (status >> SPU_STOP_STATUS_SHIFT) == 0x3fff) { | 355 | force_sig(SIGTRAP, current); |
356 | force_sig(SIGTRAP, current); | 356 | ret = -ERESTARTSYS; |
357 | ret = -ERESTARTSYS; | ||
358 | } | ||
359 | } | 357 | } |
360 | 358 | ||
361 | out: | 359 | out: |