Commit 7d25c44
committed
sched/fair: Cleanup in migrate_degrades_locality() to improve readability
JIRA: https://issues.redhat.com/browse/RHEL-24185
commit c3856c9
Author: Peter Zijlstra <peterz@infradead.org>
Date: Fri Dec 20 06:32:20 2024 +0000
sched/fair: Cleanup in migrate_degrades_locality() to improve readability
migrate_degrade_locality() would return {1, 0, -1} respectively to
indicate that migration would degrade-locality, would improve
locality, would be ambivalent to locality improvements.
This patch improves readability by changing the return value to mean:
* Any positive value degrades locality
* 0 migration doesn't affect locality
* Any negative value improves locality
[Swapnil: Fixed comments around code and wrote commit log]
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Not-yet-signed-off-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Swapnil Sapkal <swapnil.sapkal@amd.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20241220063224.17767-3-swapnil.sapkal@amd.com
Signed-off-by: Phil Auld <pauld@redhat.com>1 parent 3905cb6 commit 7d25c44
1 file changed
+21
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9347 | 9347 | | |
9348 | 9348 | | |
9349 | 9349 | | |
9350 | | - | |
9351 | | - | |
9352 | | - | |
| 9350 | + | |
| 9351 | + | |
| 9352 | + | |
9353 | 9353 | | |
9354 | | - | |
| 9354 | + | |
9355 | 9355 | | |
9356 | 9356 | | |
9357 | 9357 | | |
9358 | 9358 | | |
9359 | 9359 | | |
9360 | 9360 | | |
9361 | | - | |
| 9361 | + | |
9362 | 9362 | | |
9363 | 9363 | | |
9364 | | - | |
| 9364 | + | |
9365 | 9365 | | |
9366 | 9366 | | |
9367 | 9367 | | |
9368 | 9368 | | |
9369 | 9369 | | |
9370 | | - | |
| 9370 | + | |
9371 | 9371 | | |
9372 | 9372 | | |
9373 | 9373 | | |
9374 | 9374 | | |
9375 | 9375 | | |
9376 | 9376 | | |
9377 | | - | |
| 9377 | + | |
9378 | 9378 | | |
9379 | 9379 | | |
9380 | 9380 | | |
9381 | 9381 | | |
9382 | | - | |
| 9382 | + | |
9383 | 9383 | | |
9384 | 9384 | | |
9385 | 9385 | | |
9386 | | - | |
| 9386 | + | |
9387 | 9387 | | |
9388 | 9388 | | |
9389 | 9389 | | |
| |||
9394 | 9394 | | |
9395 | 9395 | | |
9396 | 9396 | | |
9397 | | - | |
| 9397 | + | |
9398 | 9398 | | |
9399 | 9399 | | |
9400 | 9400 | | |
9401 | | - | |
| 9401 | + | |
9402 | 9402 | | |
9403 | 9403 | | |
9404 | | - | |
| 9404 | + | |
9405 | 9405 | | |
9406 | 9406 | | |
9407 | 9407 | | |
| |||
9411 | 9411 | | |
9412 | 9412 | | |
9413 | 9413 | | |
9414 | | - | |
| 9414 | + | |
9415 | 9415 | | |
9416 | 9416 | | |
9417 | 9417 | | |
| |||
9482 | 9482 | | |
9483 | 9483 | | |
9484 | 9484 | | |
9485 | | - | |
9486 | | - | |
9487 | | - | |
| 9485 | + | |
| 9486 | + | |
| 9487 | + | |
| 9488 | + | |
| 9489 | + | |
9488 | 9490 | | |
9489 | | - | |
9490 | | - | |
9491 | | - | |
| 9491 | + | |
| 9492 | + | |
9492 | 9493 | | |
9493 | 9494 | | |
9494 | 9495 | | |
| |||
0 commit comments