diff options
-rw-r--r-- | arch/ia64/kernel/acpi.c | 9 | ||||
-rw-r--r-- | drivers/acpi/processor_core.c | 8 |
2 files changed, 11 insertions, 6 deletions
diff --git a/arch/ia64/kernel/acpi.c b/arch/ia64/kernel/acpi.c index 90ebceb899a0..522642d6a503 100644 --- a/arch/ia64/kernel/acpi.c +++ b/arch/ia64/kernel/acpi.c | |||
@@ -803,7 +803,7 @@ int acpi_isa_irq_to_gsi(unsigned isa_irq, u32 *gsi) | |||
803 | * ACPI based hotplug CPU support | 803 | * ACPI based hotplug CPU support |
804 | */ | 804 | */ |
805 | #ifdef CONFIG_ACPI_HOTPLUG_CPU | 805 | #ifdef CONFIG_ACPI_HOTPLUG_CPU |
806 | static | 806 | static __cpuinit |
807 | int acpi_map_cpu2node(acpi_handle handle, int cpu, int physid) | 807 | int acpi_map_cpu2node(acpi_handle handle, int cpu, int physid) |
808 | { | 808 | { |
809 | #ifdef CONFIG_ACPI_NUMA | 809 | #ifdef CONFIG_ACPI_NUMA |
@@ -878,7 +878,7 @@ __init void prefill_possible_map(void) | |||
878 | set_cpu_possible(i, true); | 878 | set_cpu_possible(i, true); |
879 | } | 879 | } |
880 | 880 | ||
881 | int acpi_map_lsapic(acpi_handle handle, int *pcpu) | 881 | static int __cpuinit _acpi_map_lsapic(acpi_handle handle, int *pcpu) |
882 | { | 882 | { |
883 | struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; | 883 | struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; |
884 | union acpi_object *obj; | 884 | union acpi_object *obj; |
@@ -929,6 +929,11 @@ int acpi_map_lsapic(acpi_handle handle, int *pcpu) | |||
929 | return (0); | 929 | return (0); |
930 | } | 930 | } |
931 | 931 | ||
932 | /* wrapper to silence section mismatch warning */ | ||
933 | int __ref acpi_map_lsapic(acpi_handle handle, int *pcpu) | ||
934 | { | ||
935 | return _acpi_map_lsapic(handle, pcpu); | ||
936 | } | ||
932 | EXPORT_SYMBOL(acpi_map_lsapic); | 937 | EXPORT_SYMBOL(acpi_map_lsapic); |
933 | 938 | ||
934 | int acpi_unmap_lsapic(int cpu) | 939 | int acpi_unmap_lsapic(int cpu) |
diff --git a/drivers/acpi/processor_core.c b/drivers/acpi/processor_core.c index ac77dde39199..25bf17da69fd 100644 --- a/drivers/acpi/processor_core.c +++ b/drivers/acpi/processor_core.c | |||
@@ -223,7 +223,7 @@ static bool __init processor_physically_present(acpi_handle handle) | |||
223 | return true; | 223 | return true; |
224 | } | 224 | } |
225 | 225 | ||
226 | static void acpi_set_pdc_bits(u32 *buf) | 226 | static void __cpuinit acpi_set_pdc_bits(u32 *buf) |
227 | { | 227 | { |
228 | buf[0] = ACPI_PDC_REVISION_ID; | 228 | buf[0] = ACPI_PDC_REVISION_ID; |
229 | buf[1] = 1; | 229 | buf[1] = 1; |
@@ -235,7 +235,7 @@ static void acpi_set_pdc_bits(u32 *buf) | |||
235 | arch_acpi_set_pdc_bits(buf); | 235 | arch_acpi_set_pdc_bits(buf); |
236 | } | 236 | } |
237 | 237 | ||
238 | static struct acpi_object_list *acpi_processor_alloc_pdc(void) | 238 | static struct acpi_object_list *__cpuinit acpi_processor_alloc_pdc(void) |
239 | { | 239 | { |
240 | struct acpi_object_list *obj_list; | 240 | struct acpi_object_list *obj_list; |
241 | union acpi_object *obj; | 241 | union acpi_object *obj; |
@@ -278,7 +278,7 @@ static struct acpi_object_list *acpi_processor_alloc_pdc(void) | |||
278 | * _PDC is required for a BIOS-OS handshake for most of the newer | 278 | * _PDC is required for a BIOS-OS handshake for most of the newer |
279 | * ACPI processor features. | 279 | * ACPI processor features. |
280 | */ | 280 | */ |
281 | static int | 281 | static int __cpuinit |
282 | acpi_processor_eval_pdc(acpi_handle handle, struct acpi_object_list *pdc_in) | 282 | acpi_processor_eval_pdc(acpi_handle handle, struct acpi_object_list *pdc_in) |
283 | { | 283 | { |
284 | acpi_status status = AE_OK; | 284 | acpi_status status = AE_OK; |
@@ -306,7 +306,7 @@ acpi_processor_eval_pdc(acpi_handle handle, struct acpi_object_list *pdc_in) | |||
306 | return status; | 306 | return status; |
307 | } | 307 | } |
308 | 308 | ||
309 | void acpi_processor_set_pdc(acpi_handle handle) | 309 | void __cpuinit acpi_processor_set_pdc(acpi_handle handle) |
310 | { | 310 | { |
311 | struct acpi_object_list *obj_list; | 311 | struct acpi_object_list *obj_list; |
312 | 312 | ||