aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/include/asm/mach-ip27/topology.h
diff options
context:
space:
mode:
authorThomas Bogendoerfer <tbogendoerfer@suse.de>2020-01-09 13:33:50 +0100
committerPaul Burton <paulburton@kernel.org>2020-01-09 15:30:06 -0800
commitd31f9e64898be28ebe9da4b5a0030f2ec4a0912c (patch)
tree5f35ec0f0346ff07330d0fe5eba65daf56094bab /arch/mips/include/asm/mach-ip27/topology.h
parentMIPS: SGI-IP27: Only reserve interrupts used in Linux (diff)
downloadlinux-dev-d31f9e64898be28ebe9da4b5a0030f2ec4a0912c.tar.xz
linux-dev-d31f9e64898be28ebe9da4b5a0030f2ec4a0912c.zip
MIPS: SGI-IP27: Store cpu speed when scanning for CPUs and use it later
Remember CPU speed while scanning for available CPUs to avoid looking it up a second time when printing CPU speed. Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de> Signed-off-by: Paul Burton <paulburton@kernel.org> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: James Hogan <jhogan@kernel.org> Cc: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org
Diffstat (limited to 'arch/mips/include/asm/mach-ip27/topology.h')
-rw-r--r--arch/mips/include/asm/mach-ip27/topology.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/include/asm/mach-ip27/topology.h b/arch/mips/include/asm/mach-ip27/topology.h
index 3c94ffc06a70..d66cc53feab8 100644
--- a/arch/mips/include/asm/mach-ip27/topology.h
+++ b/arch/mips/include/asm/mach-ip27/topology.h
@@ -7,6 +7,7 @@
struct cpuinfo_ip27 {
nasid_t p_nasid; /* my node ID in numa-as-id-space */
+ unsigned short p_speed; /* cpu speed in MHz */
unsigned char p_slice; /* Physical position on node board */
};