x86_acpi_cstates: Port to the new ACPI and CPUIDLE APIs.
Tested by OscarL and confirmed to be working on at least one machine, though on others it hangs, so leaving out of the default builds for now. This adds an "acpi_processor_id" field to x86 arch_cpu_info, gleaned from the MADT, so we can match our cpu_ents to ACPI processor objects. (FreeBSD does a similar mapping, see their acpi_cpu_probe method.) Change-Id: Idb5e3c1fc1efaa4256d60ea17dd1824345369687 Reviewed-on: https://review.haiku-os.org/c/haiku/+/9637 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
31f0983fb2
commit
4ccb957d6c
@@ -563,6 +563,7 @@ typedef struct arch_cpu_info {
|
||||
uint8 hybrid_type;
|
||||
|
||||
uint32 logical_apic_id;
|
||||
int16 acpi_processor_id;
|
||||
|
||||
uint64 mperf_prev;
|
||||
uint64 aperf_prev;
|
||||
|
||||
Reference in New Issue
Block a user