OSDN Git Service

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 13:05:53 +0000 (15:05 +0200)
commit65e3443b61a889b02e33537f4bd94efb23c31592
treec284ccf00439d88f1a4b66ce0e72b6d6e3f22d95
parente7590a1b15c816db318d941eee24111798d655fd
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