[PATCH 4/5] powerpc/smp: add cpu_cache_mask

Michael Ellerman mpe at ellerman.id.au
Wed Mar 15 22:26:12 AEDT 2017


Oliver O'Halloran <oohall at gmail.com> writes:

> Traditionally we have only ever tracked which CPUs are in the same core
> (cpu_sibling_mask) and on the same die (cpu_core_mask). For Power9 we
> need to be aware of which CPUs share cache with each other so this patch
> adds cpu_cache_mask and the underlying cpu_cache_map variable to track
> this.

But which cache?

Some CPUs on Power8 share L3, or L4.

I think just call it cpu_l2cache_map to make it explicit.

cheers


More information about the Linuxppc-dev mailing list