Commit 4e57b946 authored by Committed by Ingo Molnar
x86/mm: Tidy up "x86/mm: Flush more aggressively in lazy TLB mode"
Due to timezones, commit: b956575b ("x86/mm: Flush more aggressively in lazy TLB mode") was an outdated patch that well tested and fixed the bug but didn't address Borislav's review comments. Tidy it up: - The name "tlb_use_lazy_mode()" was highly confusing. Change it to "tlb_defer_switch_to_init_mm()", which describes what it actually means. - Move the static_branch crap into a helper. - Improve comments. Actually removing the debugfs option is in the next patch. Reported-by: Borislav Petkov <email@example.com> Signed-off-by: Andy Lutomirski <firstname.lastname@example.org> Cc: Linus Torvalds <email@example.com> Cc: Peter Zijlstra <firstname.lastname@example.org> Cc: Thomas Gleixner <email@example.com> Fixes: b956575b ("x86/mm: Flush more aggressively in lazy TLB mode") Link: http://firstname.lastname@example.orgSigned-off-by: Ingo Molnar <email@example.com>
Showing with 24 additions and 13 deletions