diff options
author | Luis Chamberlain <mcgrof@kernel.org> | 2023-03-10 15:28:50 -0800 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2023-03-22 23:21:36 +1100 |
commit | 3a713753d3cb52e4e3039cdb906ef00f0b574219 (patch) | |
tree | 6c9eb0904b1d597c5ad5e41eed785f09de0dd523 | |
parent | bfedee5dc406ddcd70d667be1501659f1b232b7f (diff) |
powerpc: Simplify sysctl registration for nmi_wd_lpm_factor_ctl_table
There is no need to declare an extra tables to just create directory,
this can be easily be done with a prefix path with register_sysctl().
Simplify this registration.
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230310232850.3960676-3-mcgrof@kernel.org
-rw-r--r-- | arch/powerpc/platforms/pseries/mobility.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/arch/powerpc/platforms/pseries/mobility.c b/arch/powerpc/platforms/pseries/mobility.c index 643d309d1bd0..7564e5d4253b 100644 --- a/arch/powerpc/platforms/pseries/mobility.c +++ b/arch/powerpc/platforms/pseries/mobility.c @@ -62,18 +62,10 @@ static struct ctl_table nmi_wd_lpm_factor_ctl_table[] = { }, {} }; -static struct ctl_table nmi_wd_lpm_factor_sysctl_root[] = { - { - .procname = "kernel", - .mode = 0555, - .child = nmi_wd_lpm_factor_ctl_table, - }, - {} -}; static int __init register_nmi_wd_lpm_factor_sysctl(void) { - register_sysctl_table(nmi_wd_lpm_factor_sysctl_root); + register_sysctl("kernel", nmi_wd_lpm_factor_ctl_table); return 0; } |