diff options
author | Amadeusz Sławiński <[email protected]> | 2023-09-29 13:24:33 +0200 |
---|---|---|
committer | Mark Brown <[email protected]> | 2023-09-29 14:17:53 +0200 |
commit | 28a21cb26425797910b4d7ab0cad0d377d4a004c (patch) | |
tree | 43e35a3e5b3d1458fe198d37e3109f70a12568ea /tools/perf/scripts/python/netdev-times.py | |
parent | 7eb878e768fd952739a03bf4bbd021496a818eb9 (diff) |
ASoC: Intel: avs: Preallocate memory for module configuration
In order to instantiate modules on the firmware side, the driver sends
payload with module configuration. In some case size of this information
is not known before hand, so driver allocates temporary memory during
module creation and frees it after use. Optimize the flow a bit, by
preallocating maximum buffer. This removes the time spend on allocating
memory, as well as potential OOM errors during module initialization.
Handlers for modules, where configuration data fits on stack, are left
as is.
Reviewed-by: Cezary Rojewski <[email protected]>
Signed-off-by: Amadeusz Sławiński <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions