227
224
* writing to 'state'. It first should read from 'wakeup_count' and store
228
225
* the read value. Then, after carrying out its own preparations for the system
229
226
* transition to a sleep state, it should write the stored value to
231
228
* 'wakeup_count' was read and 'state' should not be written to. Otherwise, it
232
229
* is allowed to write to 'state', but the transition will be aborted if there
233
230
* are any wakeup events detected after 'wakeup_count' was written to.