Justin Hibbits 151c44e22b Fix wrong cpu0 identification
Summary:
chrp_cpuref_init() was relying on the boot strap processor to be
the first child of /cpus. That was not always the case, specially
on pseries with FDT.

This change uses the "reg" property of each CPU instead and also
adds several sanity checks to avoid unexpected behavior (maybe
too many panics?).

The main observed symptom was interrupts being missed by the main
processor, leading to timeouts and the kernel aborting the boot.

Submitted by:	Leandro Lupori
Reviewed by:	nwhitehorn
Differential Revision: https://reviews.freebsd.org/D15174
2018-05-08 13:23:39 +00:00
..
2018-05-01 19:17:38 +00:00
2018-05-07 23:36:16 +00:00
2018-04-26 12:23:31 +00:00
2018-05-02 15:59:15 +00:00
2018-04-11 17:28:24 +00:00
2018-05-08 13:23:39 +00:00
2018-05-02 15:59:15 +00:00
2018-05-07 23:36:16 +00:00
2018-03-24 21:30:24 +00:00
2018-05-04 17:17:30 +00:00
2018-05-07 21:09:21 +00:00
2018-05-02 10:19:17 +00:00