Re: [patch V2 19/28] x86/process: Consolidate and simplify switch_to_xtra() code

2018-11-26 Thread Borislav Petkov
On Sun, Nov 25, 2018 at 07:33:47PM +0100, Thomas Gleixner wrote: > Move the conditional invocation of __switch_to_xtra() into an inline > function so the logic can be shared between 32 and 64 bit. > > Remove the handthrough of the TSS pointer and retrieve the pointer directly

Re: [patch V2 19/28] x86/process: Consolidate and simplify switch_to_xtra() code

2018-11-26 Thread Borislav Petkov
On Sun, Nov 25, 2018 at 07:33:47PM +0100, Thomas Gleixner wrote: > Move the conditional invocation of __switch_to_xtra() into an inline > function so the logic can be shared between 32 and 64 bit. > > Remove the handthrough of the TSS pointer and retrieve the pointer directly

[patch V2 19/28] x86/process: Consolidate and simplify switch_to_xtra() code

2018-11-25 Thread Thomas Gleixner
Move the conditional invocation of __switch_to_xtra() into an inline function so the logic can be shared between 32 and 64 bit. Remove the handthrough of the TSS pointer and retrieve the pointer directly in the bitmap handling function. Use this_cpu_ptr() instead of the per_cpu() indirection.

[patch V2 19/28] x86/process: Consolidate and simplify switch_to_xtra() code

2018-11-25 Thread Thomas Gleixner
Move the conditional invocation of __switch_to_xtra() into an inline function so the logic can be shared between 32 and 64 bit. Remove the handthrough of the TSS pointer and retrieve the pointer directly in the bitmap handling function. Use this_cpu_ptr() instead of the per_cpu() indirection.