diff options
author | Linus Torvalds <[email protected]> | 2021-05-04 14:07:53 -0700 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2021-05-05 08:52:31 +0200 |
commit | 025768a966a3dde8455de46d1f121a51bacb6a77 (patch) | |
tree | 8fee6e17e18a85c21cce221ff67b6bda1b356482 /lib/mpi/mpi-sub-ui.c | |
parent | 5e321ded302da4d8c5d5dd953423d9b748ab3775 (diff) |
x86/cpu: Use alternative to generate the TASK_SIZE_MAX constant
We used to generate this constant with static jumps, which certainly
works, but generates some quite unreadable and horrid code, and extra
jumps.
It's actually much simpler to just use our alternative_asm()
infrastructure to generate a simple alternative constant, making the
generated code much more obvious (and straight-line rather than "jump
around to load the right constant").
Acked-by: Borislav Petkov <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions