File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,6 @@ const struct attribute_group memory_failure_attr_group = {
123
123
.attrs = memory_failure_attr ,
124
124
};
125
125
126
- #ifdef CONFIG_SYSCTL
127
126
static struct ctl_table memory_failure_table [] = {
128
127
{
129
128
.procname = "memory_failure_early_kill" ,
@@ -146,14 +145,6 @@ static struct ctl_table memory_failure_table[] = {
146
145
{ }
147
146
};
148
147
149
- static int __init memory_failure_sysctl_init (void )
150
- {
151
- register_sysctl_init ("vm" , memory_failure_table );
152
- return 0 ;
153
- }
154
- late_initcall (memory_failure_sysctl_init );
155
- #endif /* CONFIG_SYSCTL */
156
-
157
148
/*
158
149
* Return values:
159
150
* 1: the page is dissolved (if needed) and taken off from buddy,
@@ -2441,6 +2432,8 @@ static int __init memory_failure_init(void)
2441
2432
INIT_WORK (& mf_cpu -> work , memory_failure_work_func );
2442
2433
}
2443
2434
2435
+ register_sysctl_init ("vm" , memory_failure_table );
2436
+
2444
2437
return 0 ;
2445
2438
}
2446
2439
core_initcall (memory_failure_init );
You can’t perform that action at this time.
0 commit comments