aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2020-05-05 17:03:27 +0100
committerSam Ravnborg <[email protected]>2020-06-29 09:40:41 +0200
commite192fba23ef5ed1439fe699d808c480ca969b0ed (patch)
tree1bbf9cb34681c89e9232ebe8779fdc56934b09a6 /tools/perf/scripts/python
parent8767c3fc28b2c34170cac2b0691a0f045401e31f (diff)
drm/dsi: use stack buffer in mipi_dsi_dcs_write()
Currently the function heap allocates when we have any payload. Where in many case the payload is 1 byte - ouch. >From casual observation, vast majority of the payloads are smaller than 8 bytes - so use a stack array tx[8] to avoid the senseless kmalloc and kfree dance. Cc: Jani Nikula <[email protected]> Cc: Thierry Reding <[email protected]> Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Thierry Reding <[email protected]> Signed-off-by: Sam Ravnborg <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions