@@ -236,25 +236,16 @@ static void sd_free_ctl_entry(struct ctl_table **tablep)
236
236
* tablep = NULL ;
237
237
}
238
238
239
- static int min_load_idx = 0 ;
240
- static int max_load_idx = CPU_LOAD_IDX_MAX - 1 ;
241
-
242
239
static void
243
240
set_table_entry (struct ctl_table * entry ,
244
241
const char * procname , void * data , int maxlen ,
245
- umode_t mode , proc_handler * proc_handler ,
246
- bool load_idx )
242
+ umode_t mode , proc_handler * proc_handler )
247
243
{
248
244
entry -> procname = procname ;
249
245
entry -> data = data ;
250
246
entry -> maxlen = maxlen ;
251
247
entry -> mode = mode ;
252
248
entry -> proc_handler = proc_handler ;
253
-
254
- if (load_idx ) {
255
- entry -> extra1 = & min_load_idx ;
256
- entry -> extra2 = & max_load_idx ;
257
- }
258
249
}
259
250
260
251
static struct ctl_table *
@@ -265,19 +256,19 @@ sd_alloc_ctl_domain_table(struct sched_domain *sd)
265
256
if (table == NULL )
266
257
return NULL ;
267
258
268
- set_table_entry (& table [0 ] , "min_interval" , & sd -> min_interval , sizeof (long ), 0644 , proc_doulongvec_minmax , false );
269
- set_table_entry (& table [1 ] , "max_interval" , & sd -> max_interval , sizeof (long ), 0644 , proc_doulongvec_minmax , false );
270
- set_table_entry (& table [2 ] , "busy_idx" , & sd -> busy_idx , sizeof (int ) , 0644 , proc_dointvec_minmax , true );
271
- set_table_entry (& table [3 ] , "idle_idx" , & sd -> idle_idx , sizeof (int ) , 0644 , proc_dointvec_minmax , true );
272
- set_table_entry (& table [4 ] , "newidle_idx" , & sd -> newidle_idx , sizeof (int ) , 0644 , proc_dointvec_minmax , true );
273
- set_table_entry (& table [5 ] , "wake_idx" , & sd -> wake_idx , sizeof (int ) , 0644 , proc_dointvec_minmax , true );
274
- set_table_entry (& table [6 ] , "forkexec_idx" , & sd -> forkexec_idx , sizeof (int ) , 0644 , proc_dointvec_minmax , true );
275
- set_table_entry (& table [7 ] , "busy_factor" , & sd -> busy_factor , sizeof (int ) , 0644 , proc_dointvec_minmax , false );
276
- set_table_entry (& table [8 ] , "imbalance_pct" , & sd -> imbalance_pct , sizeof (int ) , 0644 , proc_dointvec_minmax , false );
277
- set_table_entry (& table [9 ] , "cache_nice_tries" , & sd -> cache_nice_tries , sizeof (int ) , 0644 , proc_dointvec_minmax , false );
278
- set_table_entry (& table [10 ], "flags" , & sd -> flags , sizeof (int ) , 0644 , proc_dointvec_minmax , false );
279
- set_table_entry (& table [11 ], "max_newidle_lb_cost" , & sd -> max_newidle_lb_cost , sizeof (long ), 0644 , proc_doulongvec_minmax , false );
280
- set_table_entry (& table [12 ], "name" , sd -> name , CORENAME_MAX_SIZE , 0444 , proc_dostring , false );
259
+ set_table_entry (& table [0 ], "min_interval" , & sd -> min_interval , sizeof (long ), 0644 , proc_doulongvec_minmax );
260
+ set_table_entry (& table [1 ], "max_interval" , & sd -> max_interval , sizeof (long ), 0644 , proc_doulongvec_minmax );
261
+ set_table_entry (& table [2 ], "busy_idx" , & sd -> busy_idx , sizeof (int ), 0644 , proc_dointvec_minmax );
262
+ set_table_entry (& table [3 ], "idle_idx" , & sd -> idle_idx , sizeof (int ), 0644 , proc_dointvec_minmax );
263
+ set_table_entry (& table [4 ], "newidle_idx" , & sd -> newidle_idx , sizeof (int ), 0644 , proc_dointvec_minmax );
264
+ set_table_entry (& table [5 ], "wake_idx" , & sd -> wake_idx , sizeof (int ), 0644 , proc_dointvec_minmax );
265
+ set_table_entry (& table [6 ], "forkexec_idx" , & sd -> forkexec_idx , sizeof (int ), 0644 , proc_dointvec_minmax );
266
+ set_table_entry (& table [7 ], "busy_factor" , & sd -> busy_factor , sizeof (int ), 0644 , proc_dointvec_minmax );
267
+ set_table_entry (& table [8 ], "imbalance_pct" , & sd -> imbalance_pct , sizeof (int ), 0644 , proc_dointvec_minmax );
268
+ set_table_entry (& table [9 ], "cache_nice_tries" , & sd -> cache_nice_tries , sizeof (int ), 0644 , proc_dointvec_minmax );
269
+ set_table_entry (& table [10 ], "flags" , & sd -> flags , sizeof (int ), 0644 , proc_dointvec_minmax );
270
+ set_table_entry (& table [11 ], "max_newidle_lb_cost" , & sd -> max_newidle_lb_cost , sizeof (long ), 0644 , proc_doulongvec_minmax );
271
+ set_table_entry (& table [12 ], "name" , sd -> name , CORENAME_MAX_SIZE , 0444 , proc_dostring );
281
272
/* &table[13] is terminator */
282
273
283
274
return table ;
0 commit comments