]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/time: Convert MACHINE_HAS_SCC to machine_has_scc()
authorHeiko Carstens <hca@linux.ibm.com>
Fri, 7 Feb 2025 14:48:59 +0000 (15:48 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 4 Mar 2025 16:18:06 +0000 (17:18 +0100)
commitf931f67cfc274682aecc9f727eecc89779fc47b7
tree4d92c5a78d8ca293f7c5bb44bf43cf1061a408c3
parenta1a8da0dec77e0149b482698a2c1daab3a02ef7a
s390/time: Convert MACHINE_HAS_SCC to machine_has_scc()

Use static branch(es) to implement and use machine_has_scc() instead
of a runtime check via MACHINE_HAS_SCC.

This comes with a cleanup of early time initialization: the initial
tod_clock_base value is now passed via the bootdata mechanism, instead
of using absolute lowcore as transport vehicle from the decompressor
to the kernel.

Also the early tod clock initialization is moved to the decompressor
which allows to use a static branch with machine_has_scc() within the
kernel.

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>
arch/s390/boot/head.S
arch/s390/boot/printk.c
arch/s390/boot/startup.c
arch/s390/include/asm/lowcore.h
arch/s390/include/asm/machine.h
arch/s390/include/asm/setup.h
arch/s390/include/asm/timex.h
arch/s390/kernel/asm-offsets.c
arch/s390/kernel/early.c
arch/s390/kernel/head64.S
arch/s390/kernel/time.c