Messages in this thread | | | From | "Luck, Tony" <> | Subject | RE: [PATCH] x86/resctrl: avoid compiler optimization in __resctrl_sched_in | Date | Fri, 3 Mar 2023 23:17:05 +0000 |
| |
> However in the __switch_to() routine, the current point is changed. If the > compiler optimizes away the reload, then the resctrl_sched_in will look > at the previous task instead of the new current task. This explains why we > were not seeing the limit enforced on the benchmark.
Are there any other uses of "current" during context switch that might be affected by this?
-Tony
| |