mm/cma.c: export functions to be called from DLKM driver
export cma_get_base/cma_get_size for audio drivers to allocate cma buffer. Change-Id: Ib5e28981a598b4981331ef152f248220d9c2d051 Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
This commit is contained in:
parent
aeb74a7e4b
commit
dc753710d4
1 changed files with 2 additions and 0 deletions
2
mm/cma.c
2
mm/cma.c
|
|
@ -49,11 +49,13 @@ phys_addr_t cma_get_base(const struct cma *cma)
|
|||
{
|
||||
return PFN_PHYS(cma->base_pfn);
|
||||
}
|
||||
EXPORT_SYMBOL(cma_get_base);
|
||||
|
||||
unsigned long cma_get_size(const struct cma *cma)
|
||||
{
|
||||
return cma->count << PAGE_SHIFT;
|
||||
}
|
||||
EXPORT_SYMBOL(cma_get_size);
|
||||
|
||||
const char *cma_get_name(const struct cma *cma)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue