OSDN Git Service

x86/resctrl: Preserve CDP enable over CPU hotplug
[tomoyo/tomoyo-test1.git] / arch / x86 / kernel / cpu / resctrl / core.c
index 89049b3..d8cc522 100644 (file)
@@ -578,6 +578,8 @@ static void domain_add_cpu(int cpu, struct rdt_resource *r)
        d->id = id;
        cpumask_set_cpu(cpu, &d->cpu_mask);
 
+       rdt_domain_reconfigure_cdp(r);
+
        if (r->alloc_capable && domain_setup_ctrlval(r, d)) {
                kfree(d);
                return;