linux/arch/arm/mach-davinci
Russell King 6ebbf2ce43 ARM: convert all "mov.* pc, reg" to "bx reg" for ARMv6+
ARMv6 and greater introduced a new instruction ("bx") which can be used
to return from function calls.  Recent CPUs perform better when the
"bx lr" instruction is used rather than the "mov pc, lr" instruction,
and this sequence is strongly recommended to be used by the ARM
architecture manual (section A.4.1.1).

We provide a new macro "ret" with all its variants for the condition
code which will resolve to the appropriate instruction.

Rather than doing this piecemeal, and miss some instances, change all
the "mov pc" instances to use the new macro, with the exception of
the "movs" instruction and the kprobes code.  This allows us to detect
the "mov pc, lr" case and fix it up - and also gives us the possibility
of deploying this for other registers depending on the CPU selection.

Reported-by: Will Deacon <will.deacon@arm.com>
Tested-by: Stephen Warren <swarren@nvidia.com> # Tegra Jetson TK1
Tested-by: Robert Jarzmik <robert.jarzmik@free.fr> # mioa701_bootresume.S
Tested-by: Andrew Lunn <andrew@lunn.ch> # Kirkwood
Tested-by: Shawn Guo <shawn.guo@freescale.com>
Tested-by: Tony Lindgren <tony@atomide.com> # OMAPs
Tested-by: Gregory CLEMENT <gregory.clement@free-electrons.com> # Armada XP, 375, 385
Acked-by: Sekhar Nori <nsekhar@ti.com> # DaVinci
Acked-by: Christoffer Dall <christoffer.dall@linaro.org> # kvm/hyp
Acked-by: Haojian Zhuang <haojian.zhuang@gmail.com> # PXA3xx
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> # Xen
Tested-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> # ARMv7M
Tested-by: Simon Horman <horms+renesas@verge.net.au> # Shmobile
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2014-07-18 12:29:04 +01:00
..
include/mach ARM: SoC specific changes 2014-04-05 14:19:54 -07:00
aemif.c ARM: davinci: aemif: get rid of davinci-nand driver dependency on aemif 2014-02-23 20:33:18 +05:30
asp.h ASoC/ARM: Davinci: McASP: split asp header into platform and audio specific 2012-08-27 11:12:09 -07:00
board-da830-evm.c ARM: davinci: aemif: get rid of davinci-nand driver dependency on aemif 2014-02-23 20:33:18 +05:30
board-da850-evm.c ARM: davinci: aemif: get rid of davinci-nand driver dependency on aemif 2014-02-23 20:33:18 +05:30
board-dm355-evm.c ARM: davinci: remove checks for CONFIG_USB_MUSB_PERIPHERAL 2014-05-22 16:29:08 +05:30
board-dm355-leopard.c ARM: davinci: remove checks for CONFIG_USB_MUSB_PERIPHERAL 2014-05-22 16:29:08 +05:30
board-dm365-evm.c Merge branch 'i2c/for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux 2013-11-18 15:50:07 -08:00
board-dm644x-evm.c ARM: SoC: driver changes 2014-04-05 15:37:40 -07:00
board-dm646x-evm.c ARM: davinci: aemif: get rid of davinci-nand driver dependency on aemif 2014-02-23 20:33:18 +05:30
board-mityomapl138.c ARM: davinci: aemif: get rid of davinci-nand driver dependency on aemif 2014-02-23 20:33:18 +05:30
board-neuros-osd2.c ARM: davinci: board: gpio device creation 2013-09-25 04:15:40 +05:30
board-omapl138-hawk.c ARM: driver updates for 3.13 2013-11-11 17:05:37 +09:00
board-sffsdr.c misc: (at24) move header to linux/platform_data/ 2013-09-30 06:02:34 +02:00
cdce949.c ARM: drivers: remove __dev* attributes. 2013-01-03 15:57:04 -08:00
clock.c ARM: davinci: clock: return 0 upon error from clk_round_rate() 2013-11-27 14:48:33 +05:30
clock.h ARM: davinci: clk framework support for enable/disable functionality 2013-04-01 16:54:47 +05:30
common.c ARM: davinci: remove obsoleted init_consistent_dma_size() 2012-11-13 10:13:20 +01:00
cp_intc.c
cpuidle.c ARM: davinci: cpuidle: Fix target residency 2013-07-27 07:56:37 +02:00
da8xx-dt.c watchdog: davinci: rename platform driver to davinci-wdt 2014-01-09 16:48:31 +05:30
da830.c This patch updates the davinci watchdog 2014-01-16 13:59:52 -08:00
da850.c ARM: davinci: da850: Use cpufreq_for_each_entry macro for iteration 2014-04-30 00:06:27 +02:00
davinci.h ARM: davinci: da8xx: fix multiple watchdog device registration 2014-03-06 19:08:29 +05:30
devices-da8xx.c ARM: davinci: Remove redundant/unused parameters for edma 2014-05-22 14:55:23 +05:30
devices.c ARM: davinci: da8xx: fix multiple watchdog device registration 2014-03-06 19:08:29 +05:30
dm355.c ARM: davinci: Remove redundant/unused parameters for edma 2014-05-22 14:55:23 +05:30
dm365.c ARM: davinci: Remove redundant/unused parameters for edma 2014-05-22 14:55:23 +05:30
dm644x.c ARM: davinci: Remove redundant/unused parameters for edma 2014-05-22 14:55:23 +05:30
dm646x.c ARM: davinci: Remove redundant/unused parameters for edma 2014-05-22 14:55:23 +05:30
irq.c
Kconfig ARM: Remove ARCH_HAS_CPUFREQ config option 2014-06-17 17:09:39 +02:00
Makefile ARM: davinci: remove tnetv107x support 2014-03-17 14:50:34 +01:00
Makefile.boot ARM: davinci: enable da8xx build concurrently with older devices 2014-03-06 19:08:28 +05:30
mux.c
mux.h
pm_domain.c [media] media: davinci: vpss: enable vpss clocks 2013-04-14 20:08:09 -03:00
pm.c ARM: davinci: ensure global variables are declared 2013-04-17 19:26:41 +05:30
psc.c ARM: davinci: psc: introduce reset API 2013-01-22 17:42:59 +05:30
serial.c ARM: davinci: serial: remove davinci_serial_setup_clk() 2013-08-22 00:38:59 +05:30
sleep.S ARM: convert all "mov.* pc, reg" to "bx reg" for ARMv6+ 2014-07-18 12:29:04 +01:00
sram.c arch/arm/mach-davinci/sram.c: use gen_pool_dma_alloc() to sram.c 2013-11-13 12:09:22 +09:00
time.c ARM: davinci: Switch to sched_clock_register() 2013-11-21 15:40:59 -08:00
usb.c v3.10 board updates for DaVinci 2013-04-17 23:54:41 -07:00