]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: 7064/1: vexpress: Use wfi macro in platform_do_lowpower.
authorNick Bowler <nbowler@elliptictech.com>
Wed, 24 Aug 2011 17:55:37 +0000 (18:55 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 12 Sep 2011 07:55:45 +0000 (08:55 +0100)
commit5a4e4cd2b06dc2825ca27eed3a4cd15fd6e61942
tree6a05f75cf68dcf680adb5e3e2d908c8a0f88449f
parentb166bc3be08b744d2f4b14921a1efee14906b383
ARM: 7064/1: vexpress: Use wfi macro in platform_do_lowpower.

Current Versatile Express CPU hotplug code includes a hardcoded WFI
instruction, in ARM encoding.  When the kernel is compiled in Thumb-2
mode, this is invalid and causes the machine to hang hard when a CPU
is offlined.

Using the wfi macro (which uses the appropriate assembler mnemonic)
causes the correct instruction to be emitted in either case.  As a
consequence of this change, an apparently vestigial "cc" clobber is
dropped from the asm (the macro uses "memory" only).

Signed-off-by: Nick Bowler <nbowler@elliptictech.com>
Reviewed-by: Jamie Iles <jamie@jamieiles.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-vexpress/hotplug.c