Commit c3856c9
Peter Zijlstra
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) <[email protected]>
Not-yet-signed-off-by: Peter Zijlstra <[email protected]>
Signed-off-by: Swapnil Sapkal <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lore.kernel.org/r/[email protected]1 parent a430d99 commit c3856c9
1 file changed
+21
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9329 | 9329 | | |
9330 | 9330 | | |
9331 | 9331 | | |
9332 | | - | |
9333 | | - | |
9334 | | - | |
| 9332 | + | |
| 9333 | + | |
| 9334 | + | |
9335 | 9335 | | |
9336 | | - | |
| 9336 | + | |
9337 | 9337 | | |
9338 | 9338 | | |
9339 | 9339 | | |
9340 | 9340 | | |
9341 | 9341 | | |
9342 | 9342 | | |
9343 | | - | |
| 9343 | + | |
9344 | 9344 | | |
9345 | 9345 | | |
9346 | | - | |
| 9346 | + | |
9347 | 9347 | | |
9348 | 9348 | | |
9349 | 9349 | | |
9350 | 9350 | | |
9351 | 9351 | | |
9352 | | - | |
| 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 | | |
| |||
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 | | |
| |||
9393 | 9393 | | |
9394 | 9394 | | |
9395 | 9395 | | |
9396 | | - | |
| 9396 | + | |
9397 | 9397 | | |
9398 | 9398 | | |
9399 | 9399 | | |
| |||
9468 | 9468 | | |
9469 | 9469 | | |
9470 | 9470 | | |
9471 | | - | |
9472 | | - | |
9473 | | - | |
| 9471 | + | |
| 9472 | + | |
| 9473 | + | |
| 9474 | + | |
| 9475 | + | |
9474 | 9476 | | |
9475 | | - | |
9476 | | - | |
9477 | | - | |
| 9477 | + | |
| 9478 | + | |
9478 | 9479 | | |
9479 | 9480 | | |
9480 | 9481 | | |
| |||
0 commit comments