ARM: shmobile: R-Car: Break infinite loop
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 4 Jun 2015 18:22:29 +0000 (20:22 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Mon, 6 Jul 2015 00:35:18 +0000 (09:35 +0900)
commit2f575fcff1fad24e97b8e7d793ad9af9ae5b8a17
tree91031e9ce6025f12d31b0e180f8d79283e5be9c3
parent6fd2242e60e89a26e731e57dbf8f88d6639e09de
ARM: shmobile: R-Car: Break infinite loop

rcar_sysc_update() loops (with interrupts disabled and while holding a
spinlock) until submitting a power shutoff or resume request fails, or
until the submitted request was accepted.
If none of these conditions becomes true, this forms an infinite loop.

Put a limit on the maximum number of loop iterations, and add a small
delay to each iteration, to fix this.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/pm-rcar.c
This page took 0.028286 seconds and 5 git commands to generate.