linux-stable/include/linux/firmware
Richard Fitzgerald 430c350099
firmware: cirrus: cs_dsp: Avoid padding bytes in cs_dsp_coeff_ctl
Change the order of members in struct cs_dsp_coeff_ctl to avoid
the compiler having to insert alignment padding bytes. On a x86_64
build this saves 16 bytes per control.

- Pointers are collected to the top of the struct (with the exception of
  priv, as noted below), so that they are inherently aligned.
- The set and enable bitflags are placed together so they can be merged.
- priv is placed at the end of the struct - it is for use by the
  client so it is helpful to make it stand out, and since the compiler
  will always pad the struct size to an alignment multiple putting a
  pointer last won't introduce any more padding.
- struct cs_dsp_alg_region is placed at the end, right before priv, for
  the same reasoning as priv.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220425095159.3044527-1-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2022-04-25 13:59:02 +01:00
..
broadcom firmware: broadcom: add OP-TEE based BNXT f/w manager 2019-10-31 11:00:45 -07:00
cirrus firmware: cirrus: cs_dsp: Avoid padding bytes in cs_dsp_coeff_ctl 2022-04-25 13:59:02 +01:00
imx firmware: imx: add get resource owner api 2022-02-12 14:07:36 +08:00
intel firmware: stratix10-svc: extend SVC driver to get the firmware version 2022-02-25 11:54:25 +01:00
meson firmware: meson_sm: Add secure power domain support 2020-02-14 11:37:34 -08:00
trusted_foundations.h firmware: tf: Different way of L2 cache enabling after LP2 suspend 2020-05-06 18:27:26 +02:00
xlnx-event-manager.h drivers: soc: xilinx: add xilinx event management driver 2021-12-03 16:08:46 +01:00
xlnx-zynqmp.h Char/Misc and other driver updates for 5.18-rc1 2022-03-28 12:27:35 -07:00