ANDROID: Delay sharing sched memory with Trusty

Sharing memory with Trusty before interrupts are registered will
fail. This change allocates the structure in the Linux driver
as before and now initializes to default priorities in case Trusty
is unabled to use (failure to register share or unsupported by Trusty).
With this change, sharing the memory structure with Trusty is delayed
until after interrupts are enabled by the call to of_platform_populate()

This also separates unregister from free to keep the structure
available until threads finish and are no longer accessing.

Bug: 276729665
Change-Id: If0c9518251cd7bbf21ef83d5510fb3dd9b345bb2
Signed-off-by: Brandon Anderson <brandonand@google.com>
3 files changed
tree: 026a63d1438869534760ed119f04c854d120de55
  1. Documentation/
  2. drivers/
  3. include/