]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
PPC64: Get the timestap from the proper OF field
authorjhibbits <jhibbits@FreeBSD.org>
Wed, 14 Feb 2018 02:51:28 +0000 (02:51 +0000)
committerjhibbits <jhibbits@FreeBSD.org>
Wed, 14 Feb 2018 02:51:28 +0000 (02:51 +0000)
commit707bc0b7a7aaf212fe6c3a2f3886b09baf5f33b0
treedf7b594555e57f3a8e416feaf390de514f18792c
parente2b4c362eb916017849241f3e49fe322c452c294
PPC64: Get the timestap from the proper OF field

Summary:
After revision rS328534('PPC64: use hwref instead of cpuid'), FreeBSD on
powerpc64 virtual machine panics since it is unable to read the
timebase, showing the following error:

     get-property for timebase-frequency on zero phandle

     panic: Unable to determine timebase frequency!

With the change above,  cpuref->cr_hwref does not contain the phandle
anymore, thus, it never reads the proper CPU entry in OF.

Submitted by: Breno Leitao
Differential Revision: https://reviews.freebsd.org/D14204
sys/powerpc/pseries/platform_chrp.c