genalloc:support memory-allocation with bytes-alignment to genalloc
authorZhao Qiang <qiang.zhao@freescale.com>
Mon, 30 Nov 2015 02:48:52 +0000 (10:48 +0800)
committerScott Wood <scottwood@freescale.com>
Tue, 22 Dec 2015 23:10:17 +0000 (17:10 -0600)
commitde2dd0eb30af55d3893979d5641c50c7a8969c99
treedcfd94f13f29b4ad8bcf32b2849876467aa3626c
parente9d764f803964a54ca7da4a67d124fe824ebd80a
genalloc:support memory-allocation with bytes-alignment to genalloc

Bytes alignment is required to manage some special RAM,
so add gen_pool_first_fit_align to genalloc,
meanwhile add gen_pool_alloc_algo to pass algo in case user
layer using more than one algo, and pass data to
gen_pool_first_fit_align(modify gen_pool_alloc as a wrapper)

Signed-off-by: Zhao Qiang <qiang.zhao@freescale.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
include/linux/genalloc.h
lib/genalloc.c