Commit 4f2f7573 authored by Ashwin Chaugule's avatar Ashwin Chaugule Committed by Rafael J. Wysocki

CPPC: Probe for CPPC tables for each ACPI Processor object

For each detected ACPI Processor object (ACPI0007), search its
device handle for CPPC specific tables (i.e. _CPC) and extract
CPU specific performance capabilities.
Signed-off-by: default avatarAshwin Chaugule <>
Reviewed-by: default avatarAl Stone <>
Signed-off-by: default avatarRafael J. Wysocki <>
parent 56cdc2a0
......@@ -242,6 +242,10 @@ static int __acpi_processor_start(struct acpi_device *device)
if (pr->flags.need_hotplug_init)
return 0;
result = acpi_cppc_processor_probe(pr);
if (result)
return -ENODEV;
if (!cpuidle_get_driver() || cpuidle_get_driver() == &acpi_idle_driver)
......@@ -287,6 +291,8 @@ static int acpi_processor_stop(struct device *dev)
acpi_pss_perf_exit(pr, device);
return 0;
......@@ -311,6 +311,20 @@ phys_cpuid_t acpi_get_phys_id(acpi_handle, int type, u32 acpi_id);
int acpi_map_cpuid(phys_cpuid_t phys_id, u32 acpi_id);
int acpi_get_cpuid(acpi_handle, int type, u32 acpi_id);
extern int acpi_cppc_processor_probe(struct acpi_processor *pr);
extern void acpi_cppc_processor_exit(struct acpi_processor *pr);
static inline int acpi_cppc_processor_probe(struct acpi_processor *pr)
return 0;
static inline void acpi_cppc_processor_exit(struct acpi_processor *pr)
/* in processor_pdc.c */
void acpi_processor_set_pdc(acpi_handle handle);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment