Files
linux-stable-mirror/include/linux
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
..
2022-03-23 19:58:38 +01:00
2022-03-08 19:39:38 -07:00
2022-03-17 20:17:18 -07:00
2022-03-11 19:15:03 -08:00
2022-03-15 10:32:44 +01:00
2022-03-16 15:13:36 -07:00
2022-04-01 14:40:44 -04:00
2022-03-15 08:23:29 -04:00
2022-03-18 09:47:04 +01:00
2022-03-21 12:57:38 -04:00
2022-04-01 14:40:44 -04:00
2022-03-24 19:06:45 -07:00
2022-04-01 13:45:08 -04:00
2022-03-08 14:33:36 -06:00
2022-03-17 20:16:29 -07:00
2022-03-23 19:58:41 +01:00
2022-03-07 12:48:35 -07:00
2022-03-22 15:57:11 -07:00
2022-03-28 16:53:00 -04:00