riscv: switch has_fpu() to the unified static key mechanism
authorJisheng Zhang <jszhang@kernel.org>
Sun, 22 May 2022 15:35:43 +0000 (23:35 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 16 Jun 2022 17:51:31 +0000 (10:51 -0700)
commit5d0fbbbe1d8742bfef7a1123f5c9577396765aa3
treef501c76a53e813b709c8c733a83e1af6b21f49ce
parentc360cbec351103f4539b2bf68e42c35d252849ab
riscv: switch has_fpu() to the unified static key mechanism

This is to use the unified static key mechanism instead of putting
static key related here and there.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20220522153543.2656-3-jszhang@kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/switch_to.h
arch/riscv/kernel/cpufeature.c