[PATCH] soc: renesas: rcar-sysc: Optimize rcar_sysc_area struct sizes

Yoshihiro Shimoda yoshihiro.shimoda.uh at renesas.com
Fri Jun 10 04:21:29 PDT 2022


Hi Geert-san,

> From: Geert Uytterhoeven, Sent: Thursday, June 9, 2022 12:14 AM
> 
> 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>
> ---
> To be queued in renesas-devel-for-v5.20.

Thank you for the patch! This patch looks good to me. And, I tested
this patch on both r8a77951 and r8a779f0, and I didn't observe any regression.
So,

Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh at renesas.com>
Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh at renesas.com>

Best regards,
Yoshihiro Shimoda




More information about the linux-arm-kernel mailing list