diff options
author | Dennis Zhou <dennis@kernel.org> | 2019-02-26 00:43:38 +0300 |
---|---|---|
committer | Dennis Zhou <dennis@kernel.org> | 2019-03-13 22:25:31 +0300 |
commit | 3e54097beb228ddcd73bb2fd18bafaa1062e9fe4 (patch) | |
tree | c590379baa9cf76ece70f004f598f3ef2827bde5 /include/linux/pda_power.h | |
parent | d9f3a01eebe80180babd8541406490020f184d17 (diff) | |
download | linux-3e54097beb228ddcd73bb2fd18bafaa1062e9fe4.tar.xz |
percpu: manage chunks based on contig_bits instead of free_bytes
When a chunk becomes fragmented, it can end up having a large number of
small allocation areas free. The free_bytes sorting of chunks leads to
unnecessary checking of chunks that cannot satisfy the allocation.
Switch to contig_bits sorting to prevent scanning chunks that may not be
able to service the allocation request.
Signed-off-by: Dennis Zhou <dennis@kernel.org>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'include/linux/pda_power.h')
0 files changed, 0 insertions, 0 deletions