aboutsummaryrefslogtreecommitdiff
path: root/lib/cpu-notifier-error-inject.c
diff options
context:
space:
mode:
authorBoris Ostrovsky <[email protected]>2013-03-23 09:36:36 -0400
committerH. Peter Anvin <[email protected]>2013-04-10 11:25:10 -0700
commit511ba86e1d386f671084b5d0e6f110bb30b8eeb2 (patch)
tree1fe3621ebaf43ad5fb5ab644500676f2f158153f /lib/cpu-notifier-error-inject.c
parent1160c2779b826c6f5c08e5cc542de58fd1f667d5 (diff)
x86, mm: Patch out arch_flush_lazy_mmu_mode() when running on bare metal
Invoking arch_flush_lazy_mmu_mode() results in calls to preempt_enable()/disable() which may have performance impact. Since lazy MMU is not used on bare metal we can patch away arch_flush_lazy_mmu_mode() so that it is never called in such environment. [ hpa: the previous patch "Fix vmalloc_fault oops during lazy MMU updates" may cause a minor performance regression on bare metal. This patch resolves that performance regression. It is somewhat unclear to me if this is a good -stable candidate. ] Signed-off-by: Boris Ostrovsky <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Tested-by: Josh Boyer <[email protected]> Tested-by: Konrad Rzeszutek Wilk <[email protected]> Acked-by: Borislav Petkov <[email protected]> Signed-off-by: Konrad Rzeszutek Wilk <[email protected]> Signed-off-by: H. Peter Anvin <[email protected]> Cc: <[email protected]> SEE NOTE ABOVE
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions