sparc: mv sparc sysctls into their own file under arch/sparc/kernel
authorJoel Granados <joel.granados@kernel.org>
Tue, 7 Jan 2025 14:19:19 +0000 (15:19 +0100)
committerJoel Granados <joel.granados@kernel.org>
Wed, 9 Apr 2025 11:32:16 +0000 (13:32 +0200)
commitbc4f328ff516f6ea53c3c0d385a84ea7ae423c20
tree71a9698f7bba1f063004b575644f84a607305be5
parent67049b53e06fa1758df1463789f286a7cba67c50
sparc: mv sparc sysctls into their own file under arch/sparc/kernel

Move sparc sysctls (reboot-cmd, stop-a, scons-poweroff and tsb-ratio)
into a new file (arch/sparc/kernel/setup.c). This file will be included
for both 32 and 64 bit sparc. Leave "tsb-ratio" under SPARC64 ifdef as
it was in kernel/sysctl.c. The sysctl table register is called with
arch_initcall placing it after its original place in proc_root_init.

This is part of a greater effort to move ctl tables into their
respective subsystems which will reduce the merge conflicts in
kernel/sysctl.c.

Signed-off-by: Joel Granados <joel.granados@kernel.org>
arch/sparc/kernel/Makefile
arch/sparc/kernel/setup.c [new file with mode: 0644]
kernel/sysctl.c