Avoid taking locks in api_switch_to_primary.

This allows us to call it in places where it would previously lead to
nested locks, which we would like to avoid.

We only really need the lock in one case, so we acquire the lock there
(api_wait_for_interrupt) instead of api_switch_to_primary.

Change-Id: I1c9c6c4e8a950418ed62ceb8ec9f34fcdd753ca9
1 file changed
tree: 567220e08a0ec13bda1915392d15ed7f29cf729c
  1. build/
  2. docs/
  3. driver/
  4. inc/
  5. kokoro/
  6. src/
  7. test/
  8. third_party/
  9. .clang-format
  10. .clang-tidy
  11. .gitignore
  12. .gitmodules
  13. .gn
  14. BUILD.gn
  15. CONTRIBUTING.md
  16. LICENSE
  17. Makefile
  18. README.md
README.md

Hafnium

Hafnium is a hypervisor, initially supporting aarch64 (64-bit ARMv8 CPUs).

Get in touch and keep up-to-date at hafnium-discuss@googlegroups.com.

Getting started

To jump in and build Hafnium, follow the getting started instructions.