diff options
author | Thomas Bogendoerfer <tbogendoerfer@suse.de> | 2020-01-09 15:33:50 +0300 |
---|---|---|
committer | Paul Burton <paulburton@kernel.org> | 2020-01-10 02:30:06 +0300 |
commit | d31f9e64898be28ebe9da4b5a0030f2ec4a0912c (patch) | |
tree | 5f35ec0f0346ff07330d0fe5eba65daf56094bab /arch/mips/sgi-ip27/ip27-smp.c | |
parent | 78691e4f17af55d786fe71a5771e5932dd50c319 (diff) | |
download | linux-d31f9e64898be28ebe9da4b5a0030f2ec4a0912c.tar.xz |
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/sgi-ip27/ip27-smp.c')
-rw-r--r-- | arch/mips/sgi-ip27/ip27-smp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/sgi-ip27/ip27-smp.c b/arch/mips/sgi-ip27/ip27-smp.c index 3966716835ea..5d2652a1d35a 100644 --- a/arch/mips/sgi-ip27/ip27-smp.c +++ b/arch/mips/sgi-ip27/ip27-smp.c @@ -47,6 +47,8 @@ static int node_scan_cpus(nasid_t nasid, int highest) set_cpu_possible(cpuid, true); cputonasid(cpus_found) = nasid; cputoslice(cpus_found) = acpu->cpu_info.physid; + sn_cpu_info[cpus_found].p_speed = + acpu->cpu_speed; cpus_found++; } acpu = (klcpu_t *)find_component(brd, (klinfo_t *)acpu, |