Michael S. Tsirkin f68e148050 mm: reduce atomic use on use_mm fast path
When the mm being switched to matches the active mm, we don't need to
increment and then drop the mm count.  In a simple benchmark this happens
in about 50% of time.  Making that conditional reduces contention on that
cacheline on SMP systems.

Acked-by: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-09-22 07:17:42 -07:00
..
2009-04-01 08:59:13 -07:00
2009-09-22 07:17:27 -07:00
2009-09-22 07:17:41 -07:00
2009-06-16 19:47:28 -07:00
2009-09-22 07:17:41 -07:00
2009-09-22 07:17:33 -07:00
2009-09-22 07:17:33 -07:00
2009-09-22 07:17:31 -07:00
2009-09-22 07:17:41 -07:00
2009-09-22 07:17:35 -07:00
2009-09-22 07:17:40 -07:00
2009-09-22 07:17:33 -07:00
2009-09-22 07:17:40 -07:00
2009-09-22 07:17:41 -07:00
2008-06-12 18:05:41 -07:00
2007-10-20 01:27:18 +02:00
2009-09-22 07:17:31 -07:00
2009-09-22 07:17:33 -07:00
2009-06-23 12:50:05 -07:00
2009-09-22 07:17:29 -07:00