x86/resctrl: Remove lockdep annotation that triggers false positive
[linux-2.6-microblaze.git] / arch / x86 / kernel / cpu / resctrl / core.c
index 8a4ef4f..83e4034 100644 (file)
@@ -362,15 +362,6 @@ struct rdt_domain *get_domain_from_cpu(int cpu, struct rdt_resource *r)
 {
        struct rdt_domain *d;
 
-       /*
-        * Walking r->domains, ensure it can't race with cpuhp.
-        * Because this is called via IPI by rdt_ctrl_update(), assertions
-        * about locks this thread holds will lead to false positives. Check
-        * someone is holding the CPUs lock.
-        */
-       if (IS_ENABLED(CONFIG_HOTPLUG_CPU) && IS_ENABLED(CONFIG_LOCKDEP))
-               WARN_ON_ONCE(!lockdep_is_cpus_held());
-
        list_for_each_entry(d, &r->domains, list) {
                /* Find the domain that contains this CPU */
                if (cpumask_test_cpu(cpu, &d->cpu_mask))