]> asedeno.scripts.mit.edu Git - linux.git/commit
sparc64: use prom interface to get %stick frequency
authorPavel Tatashin <pasha.tatashin@oracle.com>
Thu, 15 Jun 2017 14:40:58 +0000 (10:40 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Jun 2017 15:19:34 +0000 (08:19 -0700)
commitfca4afe400cb68fe5a7f0a97fb1ba5cfdcb81675
tree976f7baa3c9cfb53dd360d58f6a30bd1f5da9e72
parent9300d9c4ad29b0e79c55c0ba7a16cfc4c13442b8
sparc64: use prom interface to get %stick frequency

We initialize time early, we must use prom interface instead of open
firmware driver, which is not yet initialized.

Also, use prom_getintdefault() instead of prom_getint() to be compatible
with the code before early boot timestamps project.

Signed-off-by: Pavel Tatashin <pasha.tatashin@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/time_64.c