| From | Thomas Gleixner <> | Subject | Re: [PATCH V7 07/18] x86/pks: Preserve the PKRS MSR on context switch | Date | Thu, 25 Nov 2021 16:25:32 +0100 |
| |
On Tue, Aug 03 2021 at 21:32, ira weiny wrote: > @@ -658,6 +659,8 @@ __switch_to(struct task_struct *prev_p, struct task_struct *next_p) > /* Load the Intel cache allocation PQR MSR. */ > resctrl_sched_in(); > > + pkrs_write_current();
This is invoked from switch_to() and does this extra get/put_cpu_ptr() dance in the write function for no reason. Can you please stop sticking overhead into the hotpath just because?
Thanks,
tglx
|