diff options
| author | Rik van Riel <[email protected]> | 2012-11-06 09:54:47 +0000 |
|---|---|---|
| committer | Mel Gorman <[email protected]> | 2012-12-11 14:28:33 +0000 |
| commit | 0f9a921cf9bf3b524feddc484e2b4d070b7ca0d0 (patch) | |
| tree | 4cad5a73d90a09863cb7615685f93e59192f256f /scripts/objdiff | |
| parent | f4a75d2eb7b1e2206094b901be09adb31ba63681 (diff) | |
x86: mm: only do a local tlb flush in ptep_set_access_flags()
The function ptep_set_access_flags() is only ever invoked to set access
flags or add write permission on a PTE. The write bit is only ever set
together with the dirty bit.
Because we only ever upgrade a PTE, it is safe to skip flushing entries on
remote TLBs. The worst that can happen is a spurious page fault on other
CPUs, which would flush that TLB entry.
Lazily letting another CPU incur a spurious page fault occasionally is
(much!) cheaper than aggressively flushing everybody else's TLB.
Signed-off-by: Rik van Riel <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Michel Lespinasse <[email protected]>
Cc: Ingo Molnar <[email protected]>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions