]> git.baikalelectronics.ru Git - kernel.git/commit
x86/mm/tlb: Do not make is_lazy dirty for no reason
authorNadav Amit <namit@vmware.com>
Sat, 20 Feb 2021 23:17:09 +0000 (15:17 -0800)
committerIngo Molnar <mingo@kernel.org>
Sat, 6 Mar 2021 11:59:10 +0000 (12:59 +0100)
commitac00e1081d4ae8d0c9a58d429f75e0ccd4aa0b27
tree5f9090493a1510710e2d9e3e2dd7cfd1c1d46343
parent89219109d41a25888d48e04efc1877e1f52f6424
x86/mm/tlb: Do not make is_lazy dirty for no reason

Blindly writing to is_lazy for no reason, when the written value is
identical to the old value, makes the cacheline dirty for no reason.
Avoid making such writes to prevent cache coherency traffic for no
reason.

Suggested-by: Dave Hansen <dave.hansen@linux.intel.com>
Signed-off-by: Nadav Amit <namit@vmware.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://lore.kernel.org/r/20210220231712.2475218-7-namit@vmware.com
arch/x86/mm/tlb.c