OSDN Git Service

bpf, x64: Remove unnecessary check on existence of SSE2
authorJie Meng <jmeng@fb.com>
Wed, 5 Oct 2022 17:00:39 +0000 (10:00 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 7 Oct 2022 14:22:07 +0000 (16:22 +0200)
commit2e30960097f6bc1a0dff89c0bcbc4138e3506d7c
treeb5a4f4c5853ca10e9695dfa45d6d6ead307a5c70
parent1d2d941bc140b34587b4c889699fb0f89d29937f
bpf, x64: Remove unnecessary check on existence of SSE2

SSE2 and hence lfence are architectural in x86-64 and no need to check
whether they're supported in CPU. SSE2's CPUID flag is still set to
maintain backward compatibility with older code or code shared with x86,
but bpf_jit_comp.c is compiled under x86-64 exclusively so the check is
redundant.

Signed-off-by: Jie Meng <jmeng@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: KP Singh <kpsingh@kernel.org>
Link: https://lore.kernel.org/bpf/20221005170039.3936894-1-jmeng@fb.com
arch/x86/net/bpf_jit_comp.c