-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
arch: Remove the abuse of spinlock in smp boot
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 <[email protected]>
- Loading branch information
1 parent
80e545a
commit 9c4b043
Showing
8 changed files
with
99 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.