Commit c3856c9c authored by Peter Zijlstra's avatar Peter Zijlstra
Browse files

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: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Not-yet-signed-off-by: default avatarPeter Zijlstra <peterz@infradead.org>
Signed-off-by: default avatarSwapnil Sapkal <swapnil.sapkal@amd.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20241220063224.17767-3-swapnil.sapkal@amd.com
parent a430d99e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment