Skip to content

allocator: unify alloc API. #1128

Closed
Closed

Description

@lgirdwood

Unify the allocator API so that rballoc becomes a static function that is called internally by rmalloc. rmmaloc() will make a judgement on calling rballoc depending on request size. i.e.

  1. rmalloc uses current block for small requests.
  2. rmallloc uses rballoc for large requests.

This also allows the block sizes to be shrunk below the rballoc block size to make the allocations more efficient.

Activity

  1. RanderWang commented on Mar 20, 2019

    @RanderWang
    Collaborator

    @lgirdwood One question: there is no lock to protect buffer heap used by rballoc which is only called at setup time. And other heaps are divided into small heaps by core number, so there is no need to protect these heaps. to add lock to buffer heap ? Do you have any advice? Thanks!

  2. RanderWang commented on Mar 20, 2019

    @RanderWang
    Collaborator

    @lgirdwood sorry, I made a mistake: there is a lock to protect buffer heap.

  3. RanderWang commented on Apr 7, 2023

    @RanderWang
    Collaborator

    it is out of date and was done in fw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions