]> www.infradead.org Git - users/jedix/linux-maple.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)
committerAllen Pais <allen.pais@oracle.com>
Thu, 29 Jun 2017 08:09:43 +0000 (13:39 +0530)
commita244ccc6140efa8ea8ba706a4a4ef9ba73ade33a
treefa3cddf6ce21267553b92d558e770430c2a520ee
parenta7d2d81069660c0cf43cf5af1b8aeb93eab3cc74
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>
Reviewed-by: Steven Sistare <steven.sistare@oracle.com>
Orabug: 24401250
Orabug: 25637776

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