]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
Revert "hv: init percpu_list in hv_synic_alloc()"
authorTim Gardner <tim.gardner@canonical.com>
Tue, 28 Mar 2017 20:21:04 +0000 (14:21 -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 db60c8d6cc34f9966be31c574ec20d577a6730a2.

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

index 86d767a1b33621ea8a07c5f072b50b5b611348df..2f5a4c08466da86c9482fc1f2a4a854b7d2b6844 100644 (file)
@@ -465,8 +465,6 @@ int hv_synic_alloc(void)
                        pr_err("Unable to allocate post msg page\n");
                        goto err;
                }
-
-               INIT_LIST_HEAD(&hv_context.percpu_list[cpu]);
        }
 
        return 0;
@@ -562,6 +560,8 @@ void hv_synic_init(void *arg)
        rdmsrl(HV_X64_MSR_VP_INDEX, vp_index);
        hv_context.vp_index[cpu] = (u32)vp_index;
 
+       INIT_LIST_HEAD(&hv_context.percpu_list[cpu]);
+
        /*
         * Register the per-cpu clockevent source.
         */