projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f6cc47
)
x86: Simplify one-level sysctl registration for itmt_kern_table
author
Luis Chamberlain
<mcgrof@kernel.org>
Fri, 10 Mar 2023 23:32:48 +0000
(15:32 -0800)
committer
Dave Hansen
<dave.hansen@linux.intel.com>
Wed, 22 Mar 2023 18:47:21 +0000
(11:47 -0700)
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: Dave Hansen <dave.hansen@linux.intel.com>
Link:
https://lore.kernel.org/all/20230310233248.3965389-3-mcgrof%40kernel.org
arch/x86/kernel/itmt.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/itmt.c
b/arch/x86/kernel/itmt.c
index 9ff480e94511b83e621ac8884158b6afe67e4495..670eb08b972aac3213171a87a4fa98be8fac5c85 100644
(file)
--- a/
arch/x86/kernel/itmt.c
+++ b/
arch/x86/kernel/itmt.c
@@
-77,15
+77,6
@@
static struct ctl_table itmt_kern_table[] = {
{}
};
-static struct ctl_table itmt_root_table[] = {
- {
- .procname = "kernel",
- .mode = 0555,
- .child = itmt_kern_table,
- },
- {}
-};
-
static struct ctl_table_header *itmt_sysctl_header;
/**
@@
-114,7
+105,7
@@
int sched_set_itmt_support(void)
return 0;
}
- itmt_sysctl_header = register_sysctl
_table(itmt_root
_table);
+ itmt_sysctl_header = register_sysctl
("kernel", itmt_kern
_table);
if (!itmt_sysctl_header) {
mutex_unlock(&itmt_update_mutex);
return -ENOMEM;