]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sparc64: broken %tick frequency on spitfire cpus
authorPavel Tatashin <pasha.tatashin@oracle.com>
Thu, 15 Jun 2017 14:40:59 +0000 (10:40 -0400)
committerAllen Pais <allen.pais@oracle.com>
Thu, 29 Jun 2017 08:09:43 +0000 (13:39 +0530)
commit29f312420d3a9dc67677c52396ced02a4657135a
tree4c49d40686b4a6f6489d5feab8b590b3623d0874
parenta244ccc6140efa8ea8ba706a4a4ef9ba73ade33a
sparc64: broken %tick frequency on spitfire cpus

After early boot time stamps project the %tick frequency is detected
incorrectly on spittfire cpus.

We must use cpuid of boot cpu to find corresponding cpu node in OpenBoot,
and extract clock-frequency property from there.

Signed-off-by: Pavel Tatashin <pasha.tatashin@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Reviewed-by: Steven Sistare <steven.sistare@oracle.com>
Orabug: 24401250
Orabug: 25637776

(cherry picked from commit eea9833453bd39e2f35325abb985d00486c8aa69)
Signed-off-by: Pavel Tatashin <pasha.tatashin@oracle.com>
Signed-off-by: Allen Pais <allen.pais@oracle.com>
arch/sparc/kernel/time_64.c