sparc64: combine activate_mm and switch_mm
authorPavel Tatashin <pasha.tatashin@oracle.com>
Wed, 31 May 2017 15:25:21 +0000 (11:25 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jun 2017 11:16:20 +0000 (13:16 +0200)
commite72963317bf1832feac0d7ca7ddd91a8f4baee8c
tree2c0697ab6b3ab653d5fd050ffc52c40e670cb5b4
parent4c0cae481fae54447c05904ddc37cc0ed8aca28a
sparc64: combine activate_mm and switch_mm

[ Upstream commit 14d0334c6748ff2aedb3f2f7fdc51ee90a9b54e7 ]

The only difference between these two functions is that in activate_mm we
unconditionally flush context. However, there is no need to keep this
difference after fixing a bug where cpumask was not reset on a wrap. So, in
this patch we combine these.

Signed-off-by: Pavel Tatashin <pasha.tatashin@oracle.com>
Reviewed-by: Bob Picco <bob.picco@oracle.com>
Reviewed-by: Steven Sistare <steven.sistare@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/sparc/include/asm/mmu_context_64.h