x86-64: Improve insn scheduling in SAVE_ARGS_IRQ
authorJan Beulich <JBeulich@suse.com>
Fri, 24 Feb 2012 11:55:01 +0000 (11:55 +0000)
committerH. Peter Anvin <hpa@linux.intel.com>
Fri, 24 Feb 2012 19:46:28 +0000 (11:46 -0800)
commit69466466ce889cd2cbc8cda9ff1c6083f48cc7f9
tree0564f1bb25de9c08a01e3d6247898b10c0805f1d
parentb893485db994b17402524d3d700b950294cb6c97
x86-64: Improve insn scheduling in SAVE_ARGS_IRQ

In one case, use an address register that was computed earlier (and
with a simpler instruction), thus reducing the risk of a stall.

In the second case, eliminate a branch by using a conditional move (as
is already done in call_softirq and xen_do_hypervisor_callback).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Link: http://lkml.kernel.org/r/4F4788A50200007800074A26@nat28.tlf.novell.com
Reviewed-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/kernel/entry_64.S