• Russell King's avatar
    [ARM] Convert suspend to a state machine. · aa97cacb
    Russell King authored
    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.
    aa97cacb
apm.c 12.3 KB