x86/smpboot: Remove redundant order calculations
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 11 Jul 2019 14:50:17 +0000 (09:50 -0500)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 16 Jul 2019 12:51:33 +0000 (13:51 +0100)
commit7e9a8545fad60aac34a25335a365703f102a40ab
tree5dca7f6fcfcf45e2194c073431ce568221f356b7
parent44a887d021de8f76183132bb5892c2c0840d3aca
x86/smpboot: Remove redundant order calculations

The GDT and IDT allocations are all order 0, and not going to change.

Use an explicit 0, instead of calling get_order_from_pages().  This
allows for the removal of the 'order' local parameter in both
cpu_smpboot_{alloc,free}().

While making this adjustment, rearrange cpu_smpboot_free() to fold the
two "if ( remove )" clauses.  There is no explicit requirements for the
order of free()s.

No practical change.

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