On 08/04/2025 05:42, Mykola Kvach wrote:
> 
> 
> From: Mykola Kvach <mykola_kv...@epam.com>
> 
> SGI and PPI descriptors are banked and stored in the per-CPU local_irq_desc
> array, so not all elements of the global irq_desc array are used. This is
> already accounted for in the descriptor lookup logic inside __irq_to_desc:
>     return &irq_desc[irq - NR_LOCAL_IRQS];
> 
> Therefore, the size of the irq_desc array can be reduced by NR_LOCAL_IRQS,
> saving (NR_LOCAL_IRQS * L1_CACHE_BYTES) bytes of memory.
Good finding. History shows that local_irq_desc was introduced after irq_desc
that could explain the mistake.

> 
> Signed-off-by: Mykola Kvach <mykola_kv...@epam.com>
Reviewed-by: Michal Orzel <michal.or...@amd.com>

~Michal



Reply via email to