Set the ACPI processor Id in the PCPU structure so that CPU idling
on SMP systems has a chance of working. This was a loose end of the implementation of the ACPI Cx idle states. Since our logical CPU Id is the ACPI processor Id, we do not need to jump through hoops to obtain it. Approved: re@ (jhb)
This commit is contained in:
parent
4e3a7a14d9
commit
1fc7ca0fb1
@ -361,7 +361,7 @@ cpu_pcpu_init(struct pcpu *pcpu, int cpuid, size_t size)
|
||||
KASSERT(size >= pcpusz + sizeof(struct pcb),
|
||||
("%s: too small an allocation for pcpu", __func__));
|
||||
pcpu->pc_pcb = (struct pcb *)((char*)pcpu + pcpusz);
|
||||
pcpu->pc_acpi_id = 0xffffffff;
|
||||
pcpu->pc_acpi_id = cpuid;
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user