[PATCH 1/5] powerpc/smp: use cpu_to_chip_id() to find siblings

Balbir Singh bsingharora at gmail.com
Thu Mar 2 14:44:19 AEDT 2017


On Thu, Mar 02, 2017 at 11:49:16AM +1100, Oliver O'Halloran wrote:
> To determine which logical CPUs are on the same core the kernel uses the
> ibm,chipid property from the device tree node associated with that cpu.
> The lookup for this this information is currently open coded in both
> traverse_siblings() and traverse_siblings_chip_id(). This patch replaces
> these manual lookups with the existing cpu_to_chip_id() function.
> 
> Signed-off-by: Oliver O'Halloran <oohall at gmail.com>
> ---

Looks like a nice cleanup

Balbir


More information about the Linuxppc-dev mailing list