[PATCH] soc: renesas: rcar-sysc: Optimize rcar_sysc_area struct sizes
Wolfram Sang
wsa at kernel.org
Thu Jun 9 00:15:55 PDT 2022
On Wed, Jun 08, 2022 at 05:14:21PM +0200, Geert Uytterhoeven wrote:
> Reduce the sizes of the rcar_sysc_area and rcar_gen4_sysc_area
> structures:
> - parent is in the range [-1..32] or [-1..64], so s8 is sufficient,
> - flags needs just 3 bits (for now), so u8 is plenty.
>
> This reduces kernel size by:
> - 288 bytes for an R-Car Gen1+Gen2 kernel (arm32),
> - 1772 bytes for an R-Car Gen3+Gen4 kernel (arm64).
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas at glider.be>
Nice! Dunno how to verify the parent ranges, but my Spider board boots
fine with it. So
Tested-by: Wolfram Sang <wsa+renesas at sang-engineering.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20220609/2f18e14c/attachment.sig>
More information about the linux-arm-kernel
mailing list