]> xenbits.xensource.com Git - people/hx242/xen.git/commit
x86: Misc trivial cleanup of bootsym_phys()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 9 Sep 2019 10:43:28 +0000 (11:43 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 18 Sep 2019 18:03:15 +0000 (19:03 +0100)
commit2655bfaa5df3dae62218a731ce6fac38639968e9
tree0d08aa3c16bbf47d32c74953d4807f203bb175f3
parentee7170822f1fc209f33feb47b268bab35541351d
x86: Misc trivial cleanup of bootsym_phys()

In smpboot, there is no need to abstract setup_trampoline() away.  Drop the
define and use bootsym_phys() directly.

In tboot, the 3 size calculations are invariant of their bootsym_phys()/__pa()
transformations, but the compiler can't tell this.  Drop the tranformations,
which simplifies the compiled function.

  add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-134 (-134)
  Function                                     old     new   delta
  tboot_shutdown                               620     486    -134
  Total: Before=3337042, After=3336908, chg -0.00%

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/smpboot.c
xen/arch/x86/tboot.c