summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-sql.py
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@free-electrons.com>2017-12-05 14:09:29 +0300
committerBoris Brezillon <boris.brezillon@free-electrons.com>2017-12-14 15:34:23 +0300
commitaeb93af96d0b0f0916aa0f65fe400a1808ea9cb9 (patch)
tree070fb22f4a3479b680f2b170b3d2ac49725aa90e /tools/perf/scripts/python/call-graph-from-sql.py
parent8c677541bb24871ce44b5a1e327a3e7f5792eae4 (diff)
downloadlinux-aeb93af96d0b0f0916aa0f65fe400a1808ea9cb9.tar.xz
mtd: nand: Only allocate ecc->{calc, code}_buf when actually needed
The only users of the ecc->{calc,code}_buf buffers are NAND controller drivers implementing ecc->calculate() and/or ecc->correct(). Since the ->oobsize can be non-negligle, especially on modern NAND devices, we'd better allocate it only when it is actually required. Make ecc->{calc,code}_buf allocation dependent on the presence of ecc->calculate() or ecc->correct(). Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions