]> git.hungrycats.org Git - linux/commit
[ARM] Convert suspend to a state machine.
authorRussell King <rmk@flint.arm.linux.org.uk>
Tue, 14 Sep 2004 00:13:03 +0000 (01:13 +0100)
committerRussell King <rmk@flint.arm.linux.org.uk>
Tue, 14 Sep 2004 00:13:03 +0000 (01:13 +0100)
commitaa97cacb9c789d0a75869389d93a548f94c2a5b3
tree251c456b4db99e0ff3dcaa9eb12eb9edf9ec8582
parentc039f765832d3eb85c4ee1e44b21dbcb11e43f33
[ARM] Convert suspend to a state machine.

The original version had issues when two suspend events came
in at around the same time, causing APM to get confused:
threads became stuck in APM_IOC_SUSPEND and suspends_pending
incremented on each apm --suspend call.

Now, we only add a suspend event to a users queue and increment
suspends_pending if the user isn't already in the middle of
handling a suspend event.
arch/arm/kernel/apm.c