-
Notifications
You must be signed in to change notification settings - Fork 586
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit resolve hang issue of pm with amp. The issue happens when CPU0 gated the CPU1 and exited from critical section without undoing gating of CPU1. Later when tick interrupt came, the gated CPU0 tries to pause CPU1, but since CPU1 is in gating it can not release spinlock require by CPU0 to proceed CPU pause request. This creates deadlock which results in hang. To prevent this case we are setting gated_cpu_count just after performing gating and at EXIT case it will ensure the gated CPUs get ungated.
- Loading branch information
1 parent
511aa52
commit 9e60686
Showing
1 changed file
with
15 additions
and
15 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