summaryrefslogtreecommitdiff
path: root/arch/s390/kernel
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2025-02-07 15:49:08 +0100
committerVasily Gorbik <gor@linux.ibm.com>2025-03-04 17:18:07 +0100
commitdb14f78ecb02292e5013d7f46cf01be4d006262d (patch)
tree3d4c114a05a190ef65ac56f3239b573d0c28d3b6 /arch/s390/kernel
parent52109a067aaa96474a5b0f12aee60d73cf5f92e1 (diff)
s390/vx: Convert cpu_has_vx() to cpu feature function
Instead of having a private cpu_has_vx() implementation use the new common cpu feature method. Move the facility detection to the decompressor so it matches all other cpu features. Reviewed-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390/kernel')
-rw-r--r--arch/s390/kernel/early.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/s390/kernel/early.c b/arch/s390/kernel/early.c
index fc30eb222ee9..081f67abe05e 100644
--- a/arch/s390/kernel/early.c
+++ b/arch/s390/kernel/early.c
@@ -184,16 +184,10 @@ static noinline __init void setup_lowcore_early(void)
lc->return_mcck_lpswe = gen_lpswe(__LC_RETURN_MCCK_PSW);
}
-static __init void detect_machine_facilities(void)
-{
- if (test_facility(129))
- system_ctl_set_bit(0, CR0_VECTOR_BIT);
-}
-
static inline void save_vector_registers(void)
{
#ifdef CONFIG_CRASH_DUMP
- if (test_facility(129))
+ if (cpu_has_vx())
save_vx_regs(boot_cpu_vector_save_area);
#endif
}
@@ -232,7 +226,6 @@ void __init startup_init(void)
setup_lowcore_early();
setup_arch_string();
setup_boot_command_line();
- detect_machine_facilities();
save_vector_registers();
setup_topology();
sclp_early_detect();