]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - arch/x86_64/kernel/smpboot.c
[PATCH] lockdep: annotate on-stack completions
[mirror_ubuntu-bionic-kernel.git] / arch / x86_64 / kernel / smpboot.c
index 9705a6a384f1c67c252defd24945f5546c0817d1..b7c70596979143f5ec70af8b38a2de656b424dcd 100644 (file)
@@ -775,6 +775,8 @@ static int __cpuinit do_boot_cpu(int cpu, int apicid)
        };
        DECLARE_WORK(work, do_fork_idle, &c_idle);
 
+       lockdep_set_class(&c_idle.done.wait.lock, &waitqueue_lock_key);
+
        /* allocate memory for gdts of secondary cpus. Hotplug is considered */
        if (!cpu_gdt_descr[cpu].address &&
                !(cpu_gdt_descr[cpu].address = get_zeroed_page(GFP_KERNEL))) {