aboutsummaryrefslogtreecommitdiff
path: root/samples/kprobes
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2020-10-28 16:16:33 +0100
committerGeert Uytterhoeven <geert+renesas@glider.be>2020-11-13 15:37:41 +0100
commit8019938a85d0f7e5ed06cd9bf0824e5edae9be2b (patch)
treeb20afda1f0c864707d9b85c9c591675466102570 /samples/kprobes
parenteb9d673f94fb186702c4933ef72d190232c26ce9 (diff)
pinctrl: renesas: Optimize sh_pfc_pin_config
Shrink sh_pfc_pin_config from 8 to 2 bytes: - The mux_set flag can be removed, as a non-zero mark value means the same (zero = PINMUX_RESERVED is an invalid mark value), - The gpio_enabled flag needs only a single bit, - Mark values are small integers, and can easily fit in a 15-bit bitfield. This saves 6 bytes per pin when allocating the sh_pfc_pinctrl.configs array, i.e. it reduces run-time memory consumption by ca. 1.5 KiB. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/r/20201028151637.1734130-5-geert+renesas@glider.be
Diffstat (limited to 'samples/kprobes')
0 files changed, 0 insertions, 0 deletions