]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: cma: add functions to get region pages counters
authorDmitry Safonov <d.safonov@partner.samsung.com>
Tue, 7 Apr 2015 23:44:36 +0000 (09:44 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 7 Apr 2015 23:44:36 +0000 (09:44 +1000)
commitc8e6dfcb6e723ccc406726c125182758493b4ed9
tree409121f26aff1c5c836510e99b9f3c8b0ee2b7f0
parenta0040a50844967944557c26ccefcabec2950cf8e
mm: cma: add functions to get region pages counters

Here are two functions that provide interface to compute/get used size and
size of biggest free chunk in cma region.  Add that information to
debugfs.

Signed-off-by: Dmitry Safonov <d.safonov@partner.samsung.com>
Signed-off-by: Stefan Strogin <stefan.strogin@gmail.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Pintu Kumar <pintu.k@samsung.com>
Cc: Weijie Yang <weijie.yang@samsung.com>
Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Cc: Vyacheslav Tyrtov <v.tyrtov@samsung.com>
Cc: Aleksei Mateosian <a.mateosian@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/cma.h
mm/cma.c
mm/cma_debug.c