projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85920f3
)
ARM: imx: do not return from imx_cpu_die() call
author
Shawn Guo
<shawn.guo@linaro.org>
Wed, 9 Oct 2013 07:29:14 +0000
(15:29 +0800)
committer
Shawn Guo
<shawn.guo@linaro.org>
Mon, 21 Oct 2013 01:37:31 +0000
(09:37 +0800)
When imx_cpu_die() is being called, the cpu should never return from the
call but just in WFI and wait for hardware to take it down. So let's
do cpu_do_idle() repeatly in the call. Doing this help improve the
relibility of hotplug operation.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/mach-imx/hotplug.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-imx/hotplug.c
b/arch/arm/mach-imx/hotplug.c
index
3daf1ed
..
b35e99c
100644
(file)
--- a/
arch/arm/mach-imx/hotplug.c
+++ b/
arch/arm/mach-imx/hotplug.c
@@
-52,7
+52,9
@@
void imx_cpu_die(unsigned int cpu)
* the register being cleared to kill the cpu.
*/
imx_set_cpu_arg(cpu, ~0);
- cpu_do_idle();
+
+ while (1)
+ cpu_do_idle();
}
int imx_cpu_kill(unsigned int cpu)