aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/machxo2-spi.c
diff options
context:
space:
mode:
authorXiaoyao Li <[email protected]>2020-03-25 03:09:24 +0000
committerThomas Gleixner <[email protected]>2020-03-27 10:43:30 +0000
commita6a60741035bb48ca8d9f92a138958818148064c (patch)
treec4ad4d6fc86dd4ef0e3fc15b753db88742bc60bb /drivers/fpga/machxo2-spi.c
parentx86/split_lock: Rework the initialization flow of split lock detection (diff)
downloadkernel-a6a60741035bb48ca8d9f92a138958818148064c.tar.gz
kernel-a6a60741035bb48ca8d9f92a138958818148064c.zip
x86/split_lock: Avoid runtime reads of the TEST_CTRL MSR
In a context switch from a task that is detecting split locks to one that is not (or vice versa) we need to update the TEST_CTRL MSR. Currently this is done with the common sequence: read the MSR flip the bit write the MSR in order to avoid changing the value of any reserved bits in the MSR. Cache unused and reserved bits of TEST_CTRL MSR with SPLIT_LOCK_DETECT bit cleared during initialization, so we can avoid an expensive RDMSR instruction during context switch. Suggested-by: Sean Christopherson <[email protected]> Originally-by: Tony Luck <[email protected]> Signed-off-by: Xiaoyao Li <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/fpga/machxo2-spi.c')
0 files changed, 0 insertions, 0 deletions