Commit c59862f
sched/fair: Cleanup loop_max and loop_break
sched_nr_migrate_break is set to a fix value and never changes so we can
replace it by a define SCHED_NR_MIGRATE_BREAK.
Also, we adjust SCHED_NR_MIGRATE_BREAK to be aligned with the init value
of sysctl_sched_nr_migrate which can be init to different values.
Then, use SCHED_NR_MIGRATE_BREAK to init sysctl_sched_nr_migrate.
The behavior stays unchanged unless you modify sysctl_sched_nr_migrate
trough debugfs.
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20220825122726.20819-3-vincent.guittot@linaro.org1 parent b0defa7 commit c59862f
3 files changed
Lines changed: 11 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
| 145 | + | |
150 | 146 | | |
151 | 147 | | |
152 | 148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8009 | 8009 | | |
8010 | 8010 | | |
8011 | 8011 | | |
8012 | | - | |
8013 | | - | |
8014 | 8012 | | |
8015 | 8013 | | |
8016 | 8014 | | |
| |||
8059 | 8057 | | |
8060 | 8058 | | |
8061 | 8059 | | |
8062 | | - | |
| 8060 | + | |
8063 | 8061 | | |
8064 | 8062 | | |
8065 | 8063 | | |
| |||
10100 | 10098 | | |
10101 | 10099 | | |
10102 | 10100 | | |
10103 | | - | |
10104 | 10101 | | |
10105 | 10102 | | |
10106 | 10103 | | |
10107 | 10104 | | |
10108 | 10105 | | |
10109 | 10106 | | |
10110 | | - | |
| 10107 | + | |
10111 | 10108 | | |
10112 | 10109 | | |
10113 | 10110 | | |
| |||
10216 | 10213 | | |
10217 | 10214 | | |
10218 | 10215 | | |
10219 | | - | |
| 10216 | + | |
10220 | 10217 | | |
10221 | 10218 | | |
10222 | 10219 | | |
| |||
10248 | 10245 | | |
10249 | 10246 | | |
10250 | 10247 | | |
10251 | | - | |
| 10248 | + | |
10252 | 10249 | | |
10253 | 10250 | | |
10254 | 10251 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2423 | 2423 | | |
2424 | 2424 | | |
2425 | 2425 | | |
| 2426 | + | |
| 2427 | + | |
| 2428 | + | |
| 2429 | + | |
| 2430 | + | |
| 2431 | + | |
2426 | 2432 | | |
2427 | 2433 | | |
2428 | 2434 | | |
| |||
0 commit comments