Sukadev Bhattiprolu 9d2a4d7133 powerpc: Define set_thread_uses_vas()
A CP_ABORT instruction is required in processes that have mapped a VAS
"paste address" with the intention of using COPY/PASTE instructions.
But since CP_ABORT is expensive, we want to restrict it to only
processes that use/intend to use COPY/PASTE.

Define an interface, set_thread_uses_vas(), that VAS can use to
indicate that the current process opened a send window. During context
switch, issue CP_ABORT only for processes that have the flag set.

Thanks for input from Nick Piggin, Michael Ellerman.

Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
[mpe: Fix to not use new_thread after _switch() returns]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2017-11-12 09:03:09 +11:00
..
2017-11-10 20:55:03 +11:00
2016-06-14 13:58:26 +10:00
2017-11-06 22:46:13 +11:00
2017-06-28 06:54:33 -07:00
2017-11-10 20:55:03 +11:00
2016-08-07 23:50:09 -04:00
2016-08-07 23:50:09 -04:00
2017-11-10 20:55:03 +11:00
2017-11-10 20:55:03 +11:00
2016-08-07 23:50:09 -04:00
2017-06-27 17:02:50 -07:00
2017-11-10 20:55:03 +11:00
2015-04-07 17:15:13 +10:00