What's really need is a done signal sent from the secondary cpu to the boot cpu, so let's simplify the logic by: 1.Change the spinlock to a bool flag 2.Set the flag to true in the secondary cpu 3.Wait the flag set in the boot cpu before continue booting This also remove all bad usage of spinlock from the code base: 1.Lock spinlock in one thread, but unlock in a different thread 2.Lock spinlock twice in one thread, but unlock only once Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> |
||
|---|---|---|
| .. | ||
| include | ||
| src | ||
| Kconfig | ||