]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdca43fce9ec628fb3fc790c49a0a22f759966bc4
tree6b9f89b76cd24cddab10ccc7c8ea5ad79065ccb6
parent763a7bc6f51a5464c70334413f06e6020c62f73b
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