sparc64: broken %tick frequency on spitfire cpus
authorPavel Tatashin <pasha.tatashin@oracle.com>
Thu, 15 Jun 2017 14:40:59 +0000 (10:40 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Jun 2017 15:19:34 +0000 (08:19 -0700)
commiteea9833453bd39e2f35325abb985d00486c8aa69
tree3d8607f52ec703e18b80bf7722c8c1b3a4eb62cd
parentfca4afe400cb68fe5a7f0a97fb1ba5cfdcb81675
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>
arch/sparc/kernel/time_64.c