]> Pileus Git - ~andy/linux/commit
ARM: omap4: Provide do_wfi() for Thumb-2
authorDave Martin <dave.martin@linaro.org>
Fri, 4 Mar 2011 15:33:53 +0000 (15:33 +0000)
committerKevin Hilman <khilman@ti.com>
Thu, 10 Mar 2011 00:38:35 +0000 (16:38 -0800)
commit85243a762457f7891ae525df39ad44323b3eeea6
tree479c3c60549f6f5e3af6ddfd9b8ca7153e43f3d7
parent2de0baefaa7f2fad221bba6049e389e39990e2f0
ARM: omap4: Provide do_wfi() for Thumb-2

For CONFIG_THUMB2_KERNEL, the existing definition of do_wfi() will
insert invalid code into the instruction stream.

Any assembler which can assemble Thumb-2 is guaranteed to accept
the "wfi" mnemonic, so for the Thumb-2 case, just use the mnemonic.

The ARM case is left as-is.

Signed-off-by: Dave Martin <dave.martin@linaro.org>
Signed-off-by: Kevin Hilman <khilman@ti.com>
arch/arm/mach-omap2/include/mach/omap4-common.h