diff options
author | Borislav Petkov (AMD) <[email protected]> | 2023-01-25 08:50:13 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2023-01-25 10:32:06 +0100 |
commit | ebd3ad60a688131de7df1dd05fd2d7c57f542268 (patch) | |
tree | d8bf8866cd972dac8a3a8aa5654b171de8ba7010 /drivers/platform/surface/aggregator/ssh_request_layer.c | |
parent | 2241ab53cbb5cdb08a6b2d4688feb13971058f65 (diff) |
x86/cpu: Use cpu_feature_enabled() when checking global pages support
X86_FEATURE_PGE determines whether the CPU has enabled global page
translations support. Use the faster cpu_feature_enabled() check to
shave off some more cycles when flushing all TLB entries, including the
global ones.
What this practically saves is:
mov 0x82eb308(%rip),%rax # 0xffffffff8935bec8 <boot_cpu_data+40>
test $0x20,%ah
... which test the bit. Not a lot, but TLB flushing is a timing-sensitive
path, so anything to make it even faster.
No functional changes.
Signed-off-by: Borislav Petkov (AMD) <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/platform/surface/aggregator/ssh_request_layer.c')
0 files changed, 0 insertions, 0 deletions