Repository navigation
Commit 97c0054
cpuset: Cleanup cpuset_cpus_allowed_fallback() use in select_fallback_rq()
select_fallback_rq() only needs to recheck for an allowed CPU if the
affinity mask of the task has changed since the last check.
Return a 'bool' from cpuset_cpus_allowed_fallback() to indicate whether
the affinity mask was updated, and use this to elide the allowed check
when the mask has been left alone.
No functional change.
Suggested-by: Valentin Schneider <valentin.schneider@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Valentin Schneider <valentin.schneider@arm.com>
Link: https://lore.kernel.org/r/20210730112443.23245-5-will@kernel.org1 parent 431c69f commit 97c0054
3 files changed
Lines changed: 12 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
192 | 192 | | |
| 193 | + | |
193 | 194 | | |
194 | 195 | | |
195 | 196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3327 | 3327 | | |
3328 | 3328 | | |
3329 | 3329 | | |
| 3330 | + | |
| 3331 | + | |
3330 | 3332 | | |
3331 | 3333 | | |
3332 | | - | |
| 3334 | + | |
3333 | 3335 | | |
3334 | 3336 | | |
3335 | 3337 | | |
| 3338 | + | |
3336 | 3339 | | |
3337 | 3340 | | |
3338 | 3341 | | |
3339 | | - | |
| 3342 | + | |
3340 | 3343 | | |
| 3344 | + | |
| 3345 | + | |
3341 | 3346 | | |
3342 | 3347 | | |
3343 | 3348 | | |
| |||
3357 | 3362 | | |
3358 | 3363 | | |
3359 | 3364 | | |
| 3365 | + | |
3360 | 3366 | | |
3361 | 3367 | | |
3362 | 3368 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3141 | 3141 | | |
3142 | 3142 | | |
3143 | 3143 | | |
3144 | | - | |
3145 | | - | |
| 3144 | + | |
3146 | 3145 | | |
3147 | 3146 | | |
3148 | 3147 | | |
| |||
0 commit comments