diff options
author | George G. Davis <ggdavisiv@gmail.com> | 2015-02-12 02:26:27 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-12 04:06:03 +0300 |
commit | 94737a85f332aee75255960eaa16e89ddfa4c75a (patch) | |
tree | faa2fd05604246ff70c2b750253efb5109f18692 /security/apparmor/lib.c | |
parent | c32b3cbe0d067a9cfae85aa70ba1e97ceba0ced7 (diff) | |
download | linux-94737a85f332aee75255960eaa16e89ddfa4c75a.tar.xz |
mm: cma: fix totalcma_pages to include DT defined CMA regions
The totalcma_pages variable is not updated to account for CMA regions
defined via device tree reserved-memory sub-nodes. Fix this omission by
moving the calculation of totalcma_pages into cma_init_reserved_mem()
instead of cma_declare_contiguous() such that it will include reserved
memory used by all CMA regions.
Signed-off-by: George G. Davis <george_davis@mentor.com>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'security/apparmor/lib.c')
0 files changed, 0 insertions, 0 deletions