]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
Revert "hv: allocate synic pages for all present CPUs"
authorTim Gardner <tim.gardner@canonical.com>
Tue, 28 Mar 2017 20:20:54 +0000 (14:20 -0600)
committerTim Gardner <tim.gardner@canonical.com>
Tue, 28 Mar 2017 20:33:42 +0000 (14:33 -0600)
BugLink: http://bugs.launchpad.net/bugs/1676635
This reverts commit 9b66ff22466f0f566fe688a0e77d03a4e7fb11de.

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/hv/hv.c

index 055491584df73d64f57a086691d954e0364069d1..86d767a1b33621ea8a07c5f072b50b5b611348df 100644 (file)
@@ -419,7 +419,7 @@ int hv_synic_alloc(void)
                goto err;
        }
 
-       for_each_present_cpu(cpu) {
+       for_each_online_cpu(cpu) {
                hv_context.event_dpc[cpu] = kmalloc(size, GFP_ATOMIC);
                if (hv_context.event_dpc[cpu] == NULL) {
                        pr_err("Unable to allocate event dpc\n");
@@ -492,7 +492,7 @@ void hv_synic_free(void)
        int cpu;
 
        kfree(hv_context.hv_numa_map);
-       for_each_present_cpu(cpu)
+       for_each_online_cpu(cpu)
                hv_synic_free_cpu(cpu);
 }