| 1 |
// SPDX-License-Identifier: GPL-2.0 |
| 2 |
|
| 3 |
#include <asm/setup.h> |
| 4 |
#include <linux/sysctl.h> |
| 5 |
|
| 6 |
static const struct ctl_table sparc_sysctl_table[] = { |
| 7 |
{ |
| 8 |
.procname = "reboot-cmd", |
| 9 |
.data = reboot_command, |
| 10 |
.maxlen = 256, |
| 11 |
.mode = 0644, |
| 12 |
.proc_handler = proc_dostring, |
| 13 |
}, |
| 14 |
{ |
| 15 |
.procname = "stop-a", |
| 16 |
.data = &stop_a_enabled, |
| 17 |
.maxlen = sizeof(int), |
| 18 |
.mode = 0644, |
| 19 |
.proc_handler = proc_dointvec, |
| 20 |
}, |
| 21 |
{ |
| 22 |
.procname = "scons-poweroff", |
| 23 |
.data = &scons_pwroff, |
| 24 |
.maxlen = sizeof(int), |
| 25 |
.mode = 0644, |
| 26 |
.proc_handler = proc_dointvec, |
| 27 |
}, |
| 28 |
#ifdef CONFIG_SPARC64 |
| 29 |
{ |
| 30 |
.procname = "tsb-ratio", |
| 31 |
.data = &sysctl_tsb_ratio, |
| 32 |
.maxlen = sizeof(int), |
| 33 |
.mode = 0644, |
| 34 |
.proc_handler = proc_dointvec, |
| 35 |
}, |
| 36 |
#endif |
| 37 |
}; |
| 38 |
|
| 39 |
|
| 40 |
static int __init init_sparc_sysctls(void) |
| 41 |
{ |
| 42 |
register_sysctl_init("kernel", sparc_sysctl_table); |
| 43 |
return 0; |
| 44 |
} |
| 45 |
|
| 46 |
arch_initcall(init_sparc_sysctls); |