diff options
author | 2017-11-07 18:23:54 -0800 | |
---|---|---|
committer | 2017-11-12 09:03:09 +1100 | |
commit | 9d2a4d71332cfdf4ea90754ad9b2f05a5ee5f6c7 (patch) | |
tree | b31b08a67de28433232370862cfd128707a10838 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | powerpc: Add support for setting SPRN_TIDR (diff) | |
download | wireguard-linux-9d2a4d71332cfdf4ea90754ad9b2f05a5ee5f6c7.tar.xz wireguard-linux-9d2a4d71332cfdf4ea90754ad9b2f05a5ee5f6c7.zip |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions