Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable automatic suspend when MCE process exits
We must not leave the device in early suspend mode when the MCE process exits. Added an atexit handler for blocking suspend on normal exits. Added SIGSEGV etc handlers that attempt to block suspend if mce happens to crash. Refactored signal handling to pass signals via pipe to be processed outside the async signal handler context. Added mce_abort() function that should be used instead of _exit() and abort() in mce code.
- Loading branch information
Showing
3 changed files
with
257 additions
and
10 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