summaryrefslogtreecommitdiffstats
path: root/drivers/dax
diff options
context:
space:
mode:
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>2019-05-13 13:14:56 +0200
committerLi Yang <leoyang.li@nxp.com>2019-06-05 21:26:00 +0200
commit875f2aabfcfa321dd39298849e3833b44ee54b4d (patch)
treefd1d9af3c08dc9da8dfdee5b767944a167c7f7c7 /drivers/dax
parentsoc: fsl: qe: drop useless static qualifier (diff)
downloadlinux-875f2aabfcfa321dd39298849e3833b44ee54b4d.tar.xz
linux-875f2aabfcfa321dd39298849e3833b44ee54b4d.zip
soc: fsl: qe: reduce static memory footprint by 1.7K
The current array of struct qe_snum use 256*4 bytes for just keeping track of the free/used state of each index, and the struct layout means there's another 768 bytes of padding. If we just unzip that structure, the array of snum values just use 256 bytes, while the free/inuse state can be tracked in a 32 byte bitmap. So this reduces the .data footprint by 1760 bytes. It also serves as preparation for introducing another DT binding for specifying the snum values. Reviewed-by: Christophe Leroy <christophe.leroy@c-s.fr> Reviewed-by: Qiang Zhao <qiang.zhao@nxp.com> Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk> Signed-off-by: Li Yang <leoyang.li@nxp.com>
Diffstat (limited to 'drivers/dax')
0 files changed, 0 insertions, 0 deletions