x86/intel_rdt: Add scheduler hook
[linux-2.6-microblaze.git] / arch / x86 / kernel / process_64.c
index b3760b3..acd7d6f 100644 (file)
@@ -50,6 +50,7 @@
 #include <asm/switch_to.h>
 #include <asm/xen/hypervisor.h>
 #include <asm/vdso.h>
+#include <asm/intel_rdt.h>
 
 __visible DEFINE_PER_CPU(unsigned long, rsp_scratch);
 
@@ -473,6 +474,9 @@ __switch_to(struct task_struct *prev_p, struct task_struct *next_p)
                        loadsegment(ss, __KERNEL_DS);
        }
 
+       /* Load the Intel cache allocation PQR MSR. */
+       intel_rdt_sched_in();
+
        return prev_p;
 }