summaryrefslogtreecommitdiffstats
path: root/include/buddy.h
Commit message (Collapse)AuthorAgeFilesLines
* buddy: Add a simple generic buddy allocatorBenjamin Herrenschmidt2017-01-051-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>
OpenPOWER on IntegriCloud