]> git.neil.brown.name Git - susman.git/commit
wakealarmd: move timer event from connection to global state.
authorNeilBrown <neilb@suse.de>
Sun, 22 Apr 2012 04:23:04 +0000 (14:23 +1000)
committerNeilBrown <neilb@suse.de>
Sun, 22 Apr 2012 04:23:04 +0000 (14:23 +1000)
commit5cb2b636fb40adf17bec3dd3bde94abd7f7dc27d
tree0c0ea7f1b82c576f91e558805ce0fdd41ecf0aa3
parent3170bf160c61e8eb6f6ac161911a3f674786b9f3
wakealarmd: move timer event from connection to global state.

Rather than having a separate timer event for each active
connection, we now have a single timer event for all connections.

As we keep a sorted list of connections, this is just as easy to work
with.

And it allows us to re-establish the timer after a suspend/resume.
This is needed as the timer might be made more slack by suspend.

Signed-off-by: NeilBrown <neilb@suse.de>
wakealarmd.c