MFC r208150:
On SMP G5 systems, sometimes the power-mode-data property is only found on CPU 0, so look there if it is not otherwise available.
This commit is contained in:
parent
502a50e4eb
commit
e48c5269bc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/8/; revision=208426
@ -202,6 +202,11 @@ pcr_attach(device_t dev)
|
|||||||
return (ENXIO);
|
return (ENXIO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (OF_getproplen(cpu, "power-mode-data") <= 0) {
|
||||||
|
/* Use the first CPU's node */
|
||||||
|
cpu = OF_child(OF_parent(cpu));
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Collect the PCR values for each mode from the device tree.
|
* Collect the PCR values for each mode from the device tree.
|
||||||
* These include bus timing information, and so cannot be
|
* These include bus timing information, and so cannot be
|
||||||
|
Loading…
Reference in New Issue
Block a user