]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
arm64: optimize el0_sync branch prediction
authorRohit Khanna <rokhanna@nvidia.com>
Wed, 14 May 2014 21:24:18 +0000 (14:24 -0700)
committerAlexander Van Brunt <avanbrunt@nvidia.com>
Thu, 22 May 2014 20:39:56 +0000 (13:39 -0700)
commitc6e42a298fe146d33b93a39e3bbc17bada7b9039
tree2ec4968f4165650a9fc46e89103f4556df7c30c8
parent2818b94860e6dec4a0be864771101b5c0ba7a64c
arm64: optimize el0_sync branch prediction

el0_sync manually sets the link register(lr) with ret_from_exception. This
is not recommended since it causes branch misprediction on RET. This patch
makes use of bl and adds an extra branch to tradeoff for the branch
misprediction.

Bug 1488764

Change-Id: I378754cb5fef46aacea42e3fe6c8db327e2a7a96
Signed-off-by: Rohit Khanna <rokhanna@nvidia.com>
Reviewed-on: http://git-master/r/410430
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>
Tested-by: Alexander Van Brunt <avanbrunt@nvidia.com>
arch/arm64/kernel/entry.S