Paul Burton 0b317c389c
MIPS: mm: Add set_cpu_context() for ASID assignments
When we gain MMID support we'll be storing MMIDs as atomic64_t values
and accessing them via atomic64_* functions. This necessitates that we
don't use cpu_context() as the left hand side of an assignment, ie. as a
modifiable lvalue. In preparation for this introduce a new
set_cpu_context() function & replace all assignments with cpu_context()
on their left hand side with an equivalent call to set_cpu_context().

To enforce that cpu_context() should not be used for assignments, we
rewrite it as a static inline function.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: linux-mips@vger.kernel.org
2019-02-04 10:56:33 -08:00
..
2018-10-31 08:54:16 -07:00
2018-10-31 08:54:16 -07:00
2016-07-05 16:09:11 +02:00
2018-10-31 08:54:16 -07:00
2017-03-28 14:53:54 +01:00
2018-12-29 13:03:29 -08:00
2018-12-21 11:28:41 +01:00
2015-03-27 21:25:19 +00:00
2017-03-28 14:54:00 +01:00
2019-02-04 10:56:30 -08:00