aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
diff options
context:
space:
mode:
authorThiago Jung Bauermann <[email protected]>2021-02-19 21:52:04 -0300
committerRob Herring <[email protected]>2021-03-11 09:53:38 -0700
commit886db32398aba36937e3a61bc093bf4d859cfaf8 (patch)
treee2088fdeaffb3502bcf91a1601c5bbec99fcd7a6 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
parentdce92f6b11c3174737bd65eaf933458909b633ff (diff)
powerpc/kexec_file: Restore FDT size estimation for kdump kernel
kexec_fdt_totalsize_ppc64() includes the base FDT size in its size calculation, but commit 3c985d31ad66 ("powerpc: Use common of_kexec_alloc_and_setup_fdt()") changed the kexec code to use the generic function of_kexec_alloc_and_setup_fdt() which already includes the base FDT size. That change made the code overestimate the size a bit by counting twice the space required for the kernel command line and /chosen properties. Therefore change kexec_fdt_totalsize_ppc64() to calculate just the extra space needed by the kdump kernel, and change the function name so that it better reflects what the function is now doing. Signed-off-by: Thiago Jung Bauermann <[email protected]> Reviewed-by: Lakshmi Ramasubramanian <[email protected]> Reviewed-by: Hari Bathini <[email protected]> Acked-by: Michael Ellerman <[email protected]> [robh: reword commit msg as no longer a fix from merging to branches] Signed-off-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions