nf: IDLETIMER: time-stamp and suspend/resume handling.
authorRuchi Kandoi <kandoiruchi@google.com>
Tue, 25 Mar 2014 23:43:28 +0000 (16:43 -0700)
committerRuchi Kandoi <kandoiruchi@google.com>
Wed, 23 Apr 2014 01:05:20 +0000 (18:05 -0700)
commite8430cbed3ef15fdb1ac26cfd020e010aa5f1c35
tree7594fa3d50eb7e056d6232bf01f99501ecaa0407
parent37a591d407084b967bb49acc3fe21c446b075d55
nf: IDLETIMER: time-stamp and suspend/resume handling.

Message notifications contains an additional timestamp field in nano seconds.
The expiry time for the timers are modified during suspend/resume.
If timer was supposed to expire while the system is suspended then a
notification is sent when it resumes with the timestamp of the scheduled expiry.

Removes the race condition for multiple work scheduled.

Bug: 13247811

Change-Id: I752c5b00225fe7085482819f975cc0eb5af89bff
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
net/netfilter/xt_IDLETIMER.c