diff options
author | Alex Chiang <achiang@hp.com> | 2010-02-22 12:11:19 -0700 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2010-03-14 21:17:18 -0400 |
commit | 2e9d5e4efa0beeca03ad550bda28027826e83e42 (patch) | |
tree | 2b2c94819ff1b521933ab7fec8d430e2ce3ee91b /include/acpi | |
parent | 4d5d4cd88c542ff56cf7feacd29cc907f2abbfbb (diff) | |
download | blackbird-op-linux-2e9d5e4efa0beeca03ad550bda28027826e83e42.tar.gz blackbird-op-linux-2e9d5e4efa0beeca03ad550bda28027826e83e42.zip |
ACPI: processor: export acpi_get_cpuid()
Rename static get_cpu_id() to acpi_get_cpuid() and export it.
This change also gives us an opportunity to remove the
#ifndef CONFIG_SMP from processor_driver.c and into a header file
where it properly belongs.
Acked-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/acpi')
-rw-r--r-- | include/acpi/processor.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/acpi/processor.h b/include/acpi/processor.h index 7bb0b8b9332e..86825ddbe14e 100644 --- a/include/acpi/processor.h +++ b/include/acpi/processor.h @@ -322,6 +322,14 @@ static inline int acpi_processor_get_bios_limit(int cpu, unsigned int *limit) /* in processor_core.c */ void acpi_processor_set_pdc(acpi_handle handle); +#ifdef CONFIG_SMP +int acpi_get_cpuid(acpi_handle, int type, u32 acpi_id); +#else +static inline int acpi_get_cpuid(acpi_handle handle, int type, u32 acpi_id) +{ + return -1; +} +#endif /* in processor_throttling.c */ int acpi_processor_tstate_has_changed(struct acpi_processor *pr); |