commit | 6b81f080ab458c808dff17eab20233a1fce09555 | [log] [tgz] |
---|---|---|
author | Andrei Homescu <ahomescu@google.com> | Tue Feb 15 06:51:01 2022 +0000 |
committer | Andrei Homescu <ahomescu@google.com> | Mon Aug 15 23:34:03 2022 +0000 |
tree | e565cbdabf2c286de8442ed851b13f3287c1dede | |
parent | ca944d64971efdd64c59e9c890fec49b3285fd32 [diff] |
[lib][sm] Create all sm threads on the main CPU If we sleep during boot on the main CPU while holding the vmm_lock mutex before sm_secondary_init calls thread_create which blocks on that mutex, we hit a deadlock where all secondary CPUs are blocked on vmm_lock while the NS OS gets stuck trying to schedule those CPUs over the main one. This fixes the deadlock by creating the threads on the main CPU. Bug: 217580763 Change-Id: Ie3d24655c8ad7394f35c9e5f258c3e5bb1523296