ARM: rockchip: ensure CPU to enter WFI/WFE state
authorCaesar Wang <wxt@rock-chips.com>
Tue, 9 Jun 2015 09:49:58 +0000 (17:49 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Sun, 5 Jul 2015 22:46:59 +0000 (00:46 +0200)
commite306bc16c53199e7440e1fee69dd91dc0a56edee
treef918e432d41d2b19e4aa2b096aeb900132ca6a4c
parentfe4407c0dc58215a7abfb7532740d79ddabe7a7a
ARM: rockchip: ensure CPU to enter WFI/WFE state

The patch can ensure that v7_exit_coherency_flush() in rockchip_cpu_die()
executed in time.
The mdelay(1) has enough time to fix the problem of CPU offlining.
That's a workaround way in rockchip hotplug code,
At least, we haven't a better way to solve it. Who know,
that maybe fixed by chip (hardware) in the future.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm/mach-rockchip/platsmp.c