Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | buddy: Add a simple generic buddy allocator | Benjamin Herrenschmidt | 2017-01-05 | 1 | -0/+54 |
It operates on bits representing whatever objects the caller wants it to represent, it's not per-se a memory allocator (it's meant to be used among others by XIVE for VP allocations). As such it cannot keep linked lists of free objects, so don't expect stellar perfs. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> [stewart@linux.vnet.ibm.com: add (C) header, fix gcc4.8 build error] Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com> |