[amlogic] Fixing slow resource initialization

At steady state the stream_control_thread doesn't need much CPU time.
However when doing resource initialization or destruction the thread
finds itself exceeding it's deadline causing the thread to context
switch repeatedly which yields low throughput. To solve this when doing
computational complex operations we use a resource thread which doesn't
have the same restrictive deadline parameters as the
stream_control_thread. However since stream operations are assumed to be
synchronous the stream_control_thread will block on the completion of
those operations.

Bug: 103225
Bug: b/235629262
Change-Id: I8f9b67917f60813d241374f4ec3af51f28afbfab
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/695362
Reviewed-by: John Bauman <jbauman@google.com>
Commit-Queue: Stefan Bossbaly <stefanbossbaly@google.com>
(cherry picked from commit f128fe46048f2b4db01d9e379faf02b8ba3c0459)
2 files changed
tree: 10cee6a834ae4e07640c3a1d8caf9a643ba09888
  1. boards/
  2. build/
  3. bundles/
  4. docs/
  5. examples/
  6. garnet/
  7. products/
  8. scripts/
  9. sdk/
  10. src/
  11. third_party/
  12. tools/
  13. zircon/
  14. .clang-format
  15. .clang-tidy
  16. .editorconfig
  17. .git-blame-ignore-revs
  18. .gitattributes
  19. .gitignore
  20. .gn
  21. .style.yapf
  22. analysis_options.yaml
  23. AUTHORS
  24. BUILD.gn
  25. CODE_OF_CONDUCT.md
  26. CONTRIBUTING.md
  27. LICENSE
  28. OWNERS
  29. PATENTS
  30. pyrightconfig.json
  31. README.md
  32. rustfmt.toml
README.md

Fuchsia

What is Fuchsia?

Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.

We expect everyone interacting with our project to respect our code of conduct.

Read more about Fuchsia's principles.

How can I build and run Fuchsia?

See Getting Started.

Where can I learn more about Fuchsia?

See fuchsia.dev.