diff options
author | Hanjun Guo <hanjun.guo@linaro.com> | 2015-01-04 05:55:03 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-01-05 17:34:26 -0500 |
commit | d02dc27db0dc74683efc4a2b36f55f5594451f38 (patch) | |
tree | cbf8a9b0e16897d157c9fe641da7a00d4f587044 /drivers/acpi/acpi_processor.c | |
parent | af8f3f514d193eb353f9b6cea503c55d074e6153 (diff) |
ACPI / processor: Rename acpi_(un)map_lsapic() to acpi_(un)map_cpu()
acpi_map_lsapic() will allocate a logical CPU number and map it to
physical CPU id (such as APIC id) for the hot-added CPU, it will also
do some mapping for NUMA node id and etc, acpi_unmap_lsapic() will
do the reverse.
We can see that the name of the function is a little bit confusing and
arch (IA64) dependent so rename them as acpi_(un)map_cpu() to make arch
agnostic and explicit.
Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpi_processor.c')
-rw-r--r-- | drivers/acpi/acpi_processor.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/acpi/acpi_processor.c b/drivers/acpi/acpi_processor.c index f02b29eb0fda..1020b1b53a17 100644 --- a/drivers/acpi/acpi_processor.c +++ b/drivers/acpi/acpi_processor.c | |||
@@ -180,13 +180,13 @@ static int acpi_processor_hotadd_init(struct acpi_processor *pr) | |||
180 | cpu_maps_update_begin(); | 180 | cpu_maps_update_begin(); |
181 | cpu_hotplug_begin(); | 181 | cpu_hotplug_begin(); |
182 | 182 | ||
183 | ret = acpi_map_lsapic(pr->handle, pr->phys_id, &pr->id); | 183 | ret = acpi_map_cpu(pr->handle, pr->phys_id, &pr->id); |
184 | if (ret) | 184 | if (ret) |
185 | goto out; | 185 | goto out; |
186 | 186 | ||
187 | ret = arch_register_cpu(pr->id); | 187 | ret = arch_register_cpu(pr->id); |
188 | if (ret) { | 188 | if (ret) { |
189 | acpi_unmap_lsapic(pr->id); | 189 | acpi_unmap_cpu(pr->id); |
190 | goto out; | 190 | goto out; |
191 | } | 191 | } |
192 | 192 | ||
@@ -461,7 +461,7 @@ static void acpi_processor_remove(struct acpi_device *device) | |||
461 | 461 | ||
462 | /* Remove the CPU. */ | 462 | /* Remove the CPU. */ |
463 | arch_unregister_cpu(pr->id); | 463 | arch_unregister_cpu(pr->id); |
464 | acpi_unmap_lsapic(pr->id); | 464 | acpi_unmap_cpu(pr->id); |
465 | 465 | ||
466 | cpu_hotplug_done(); | 466 | cpu_hotplug_done(); |
467 | cpu_maps_update_done(); | 467 | cpu_maps_update_done(); |