diff options
author | Peter Zijlstra <peterz@infradead.org> | 2024-12-20 06:32:20 +0000 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2024-12-20 15:31:17 +0100 |
commit | c3856c9ce6b8903909b61e8d2985a3c7ec7a78e8 (patch) | |
tree | 5e84e51d6246e0981f4783e63dabc89624e6a6a3 /kernel/sched/stats.c | |
parent | a430d99e349026d53e2557b7b22bd2ebd61fe12a (diff) |
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
Diffstat (limited to 'kernel/sched/stats.c')
0 files changed, 0 insertions, 0 deletions