]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
LoongArch: Cleanup __builtin_constant_p() checking for cpu_has_*
authorHuacai Chen <chenhuacai@loongson.cn>
Fri, 28 Jul 2023 02:30:42 +0000 (10:30 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Fri, 28 Jul 2023 02:30:42 +0000 (10:30 +0800)
commit1e74ae32805b6630c78bd7fb746fbfe936fb8f86
tree88f3bebf23de1035d42980c8774670adab7a9065
parent4eece7e6de94d833c8aeed2f438faf487cbf94ff
LoongArch: Cleanup __builtin_constant_p() checking for cpu_has_*

In the current configuration, cpu_has_lsx and cpu_has_lasx cannot be
constants. So cleanup the __builtin_constant_p() checking to reduce the
complexity.

Reviewed-by: WANG Xuerui <git@xen0n.name>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/include/asm/fpu.h