diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2020-10-05 15:15:46 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-10-05 16:18:36 +0100 |
commit | c845f21ad86528f888db27849f2d315e08126816 (patch) | |
tree | 4203079842ea41ea2bfd2644947e902b8794b283 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 0b5a21870694ab4c75a783f77b158840908f04a1 (diff) |
regulator: Make constraint debug processing conditional on DEBUG
If debugging is disabled, print_constraints() does not print the actual
constraints, but still performs some processing and string formatting,
only to throw away the result later.
Fix this by moving all constraint debug processing to a separate
function, and replacing it by a dummy when debugging is disabled.
This reduces kernel size by almost 800 bytes (on arm/arm64).
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20201005131546.22448-1-geert+renesas@glider.be
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions