nf: IDLETIMER: time-stamp and suspend/resume handling.
authorRuchi Kandoi <kandoiruchi@google.com>
Tue, 25 Mar 2014 23:43:28 +0000 (16:43 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:51:33 +0000 (13:51 -0800)
commitd726599912465970bf19af891dfcbb9a01d10691
tree7c050c2c0b738c20f8befbc82e4e557358adae24
parenta02cb7d6ceec2765e9978d3e7a2e5c704c2879dd
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