MIPS: Add CPU cluster number accessors
authorPaul Burton <paul.burton@imgtec.com>
Sun, 13 Aug 2017 02:49:38 +0000 (19:49 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 29 Aug 2017 22:57:27 +0000 (00:57 +0200)
commit5616897efd1816c18231c9976a6d64392fc6cdee
tree6b9f89b76cd24cddab10ccc7c8ea5ad79065ccb6
parentfe7a38c625a2ee375870567c9fc8302e51e550f7
MIPS: Add CPU cluster number accessors

Introduce cpu_cluster() & cpu_set_cluster() accessor functions in the
same vein as cpu_core(), cpu_vpe_id() & their set variants. These will
be used in further patches to allow users to get or set a CPUs cluster
number.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/17012/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/cpu-info.h
arch/mips/kernel/cpu-probe.c