]> xenbits.xensource.com Git - mini-os.git/commit
mini-os: mm: reduce buddy allocator list administration data
authorJuergen Gross <jgross@suse.com>
Wed, 24 Jul 2024 10:03:13 +0000 (12:03 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 24 Jul 2024 10:03:13 +0000 (12:03 +0200)
commitb12961e9044e249750d9640910d3aa769accc8c6
tree6812822f47041fe227a37ec2d9a0a1d34539c6a1
parente42c5b6b7cac61fca5afc9427789786b94a3d670
mini-os: mm: reduce buddy allocator list administration data

Today the administration data for the buddy allocator's lists consists
of 2 arrays: one pointer array and one list element array for easier
handling of the lists' tails.

Those arrays can be combined into one by dropping the pointer array and
using a different list end indicator.

Add enqueue and dequeue helpers for better readability.

Change the level member type to unsigned int.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
mm.c