From: Colin Cross Date: Thu, 29 Aug 2013 01:41:47 +0000 (-0700) Subject: cpuidle: coupled: abort idle if pokes are pending X-Git-Tag: v3.12-rc1~178^2~1^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f983827bcb9d2c34c4d8935861a1e9128aec2baf;p=pandora-kernel.git cpuidle: coupled: abort idle if pokes are pending Joseph Lo reported a lockup on Tegra20 caused by a race condition in coupled cpuidle. When two or more cpus enter idle at the same time, the first cpus to arrive may go to the ready loop without processing pending pokes from the last cpu to arrive. This patch adds a check for pending pokes once all cpus have been synchronized in the ready loop and resets the coupled state and retries if any cpus failed to handle their pending poke. Retrying on all cpus may trigger the same issue again, so this patch also adds a check to ensure that each cpu has received at least one poke between when it enters the waiting loop and when it moves on to the ready loop. Reported-and-tested-by: Joseph Lo Tested-by: Stephen Warren Signed-off-by: Colin Cross Cc: 3.6+ # 3.6+ Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed