ANDROID: trusty: park threads when cpu is offline

If the thread is running when the cpu goes offline, it loses its
affinity and gets migrated to another cpu. This in turn can cause trusty
to stop responding as it might need to run on that specific cpu once it
is back online.

Park the thread while the cpu is offline to avoid this migration. The
kernel also has apis to re-bind the thread to a specific cpu each time
it is unparked, but none of those apis are exported to modules yet.

Bug: 266595872
Change-Id: Ie08894f1eb33b857b91a33630eaa3cbf74cc6c0a
Signed-off-by: Arve Hjønnevåg <arve@android.com>
1 file changed
tree: fd60d7df3b5b47a8260903f4bca88cb86d922e9e
  1. Documentation/
  2. drivers/
  3. include/