aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJan Kiszka <[email protected]>2019-06-18 07:32:11 +0000
committerThomas Gleixner <[email protected]>2019-07-24 12:43:37 +0000
commit21e450d21ccad4cb7c7984c29ff145012b47736d (patch)
tree17a6ad3e3620cedd781fa9096abaa4d3b14d0a30 /tools/perf/scripts/python
parentLinus 5.3-rc1 (diff)
downloadkernel-21e450d21ccad4cb7c7984c29ff145012b47736d.tar.gz
kernel-21e450d21ccad4cb7c7984c29ff145012b47736d.zip
x86/mm: Avoid redundant interrupt disable in load_mm_cr4()
load_mm_cr4() is always called with interrupts disabled from: - switch_mm_irqs_off() - refresh_pce(), which is a on_each_cpu() callback Thus, disabling interrupts in cr4_set/clear_bits() is redundant. Implement cr4_set/clear_bits_irqsoff() helpers, rename load_mm_cr4() to load_mm_cr4_irqsoff() and use the new helpers. The new helpers do not need a lockdep assert as __cr4_set() has one already. The renaming in combination with the checks in __cr4_set() ensure that any changes in the boundary conditions at the call sites will be detected. [ tglx: Massaged change log ] Signed-off-by: Jan Kiszka <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions