diff options
Diffstat (limited to 'arch/ia64/kernel/acpi.c')
-rw-r--r-- | arch/ia64/kernel/acpi.c | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/arch/ia64/kernel/acpi.c b/arch/ia64/kernel/acpi.c index c6c90f39f4d9..3be485a300b1 100644 --- a/arch/ia64/kernel/acpi.c +++ b/arch/ia64/kernel/acpi.c | |||
@@ -477,6 +477,12 @@ acpi_numa_processor_affinity_init(struct acpi_srat_cpu_affinity *pa) | |||
477 | if (!(pa->flags & ACPI_SRAT_CPU_ENABLED)) | 477 | if (!(pa->flags & ACPI_SRAT_CPU_ENABLED)) |
478 | return; | 478 | return; |
479 | 479 | ||
480 | if (srat_num_cpus >= ARRAY_SIZE(node_cpuid)) { | ||
481 | printk_once(KERN_WARNING | ||
482 | "node_cpuid[%ld] is too small, may not be able to use all cpus\n", | ||
483 | ARRAY_SIZE(node_cpuid)); | ||
484 | return; | ||
485 | } | ||
480 | pxm = get_processor_proximity_domain(pa); | 486 | pxm = get_processor_proximity_domain(pa); |
481 | 487 | ||
482 | /* record this node in proximity bitmap */ | 488 | /* record this node in proximity bitmap */ |
@@ -797,7 +803,7 @@ int acpi_isa_irq_to_gsi(unsigned isa_irq, u32 *gsi) | |||
797 | * ACPI based hotplug CPU support | 803 | * ACPI based hotplug CPU support |
798 | */ | 804 | */ |
799 | #ifdef CONFIG_ACPI_HOTPLUG_CPU | 805 | #ifdef CONFIG_ACPI_HOTPLUG_CPU |
800 | static | 806 | static __cpuinit |
801 | int acpi_map_cpu2node(acpi_handle handle, int cpu, int physid) | 807 | int acpi_map_cpu2node(acpi_handle handle, int cpu, int physid) |
802 | { | 808 | { |
803 | #ifdef CONFIG_ACPI_NUMA | 809 | #ifdef CONFIG_ACPI_NUMA |
@@ -872,7 +878,7 @@ __init void prefill_possible_map(void) | |||
872 | set_cpu_possible(i, true); | 878 | set_cpu_possible(i, true); |
873 | } | 879 | } |
874 | 880 | ||
875 | int acpi_map_lsapic(acpi_handle handle, int *pcpu) | 881 | static int __cpuinit _acpi_map_lsapic(acpi_handle handle, int *pcpu) |
876 | { | 882 | { |
877 | struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; | 883 | struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; |
878 | union acpi_object *obj; | 884 | union acpi_object *obj; |
@@ -923,6 +929,11 @@ int acpi_map_lsapic(acpi_handle handle, int *pcpu) | |||
923 | return (0); | 929 | return (0); |
924 | } | 930 | } |
925 | 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 | } | ||
926 | EXPORT_SYMBOL(acpi_map_lsapic); | 937 | EXPORT_SYMBOL(acpi_map_lsapic); |
927 | 938 | ||
928 | int acpi_unmap_lsapic(int cpu) | 939 | int acpi_unmap_lsapic(int cpu) |
@@ -1028,18 +1039,8 @@ int acpi_unregister_ioapic(acpi_handle handle, u32 gsi_base) | |||
1028 | EXPORT_SYMBOL(acpi_unregister_ioapic); | 1039 | EXPORT_SYMBOL(acpi_unregister_ioapic); |
1029 | 1040 | ||
1030 | /* | 1041 | /* |
1031 | * acpi_save_state_mem() - save kernel state | 1042 | * acpi_suspend_lowlevel() - save kernel state and suspend. |
1032 | * | 1043 | * |
1033 | * TBD when when IA64 starts to support suspend... | 1044 | * TBD when when IA64 starts to support suspend... |
1034 | */ | 1045 | */ |
1035 | int acpi_save_state_mem(void) { return 0; } | 1046 | int acpi_suspend_lowlevel(void) { return 0; } |
1036 | |||
1037 | /* | ||
1038 | * acpi_restore_state() | ||
1039 | */ | ||
1040 | void acpi_restore_state_mem(void) {} | ||
1041 | |||
1042 | /* | ||
1043 | * do_suspend_lowlevel() | ||
1044 | */ | ||
1045 | void do_suspend_lowlevel(void) {} | ||