Re: [PATCHv3 linux-next] hrtimer: Add notifier when clock_was_set was called

2013-09-17 Thread Fan Du
On 2013年09月16日 17:01, Thomas Gleixner wrote: On Mon, 16 Sep 2013, Fan Du wrote: On 2013年09月13日 22:32, Thomas Gleixner wrote: On Fri, 13 Sep 2013, Fan Du wrote: (2) What I have been bugging you around here for this long time is really the second problem, I'm sorry I didn't make it clear

Re: [PATCHv3 linux-next] hrtimer: Add notifier when clock_was_set was called

2013-09-16 Thread Thomas Gleixner
On Mon, 16 Sep 2013, Fan Du wrote: > On 2013年09月13日 22:32, Thomas Gleixner wrote: > > On Fri, 13 Sep 2013, Fan Du wrote: > > > (2) What I have been bugging you around here for this long time is really > > > the > > > second > > > problem, I'm sorry I didn't make it clearly to you and others, w

Re: [PATCHv3 linux-next] hrtimer: Add notifier when clock_was_set was called

2013-09-15 Thread Fan Du
Hi, Thomas On 2013年09月13日 22:32, Thomas Gleixner wrote: On Fri, 13 Sep 2013, Fan Du wrote: (2) What I have been bugging you around here for this long time is really the second problem, I'm sorry I didn't make it clearly to you and others, which is below: Why using wall clock time to

Re: [PATCHv3 linux-next] hrtimer: Add notifier when clock_was_set was called

2013-09-13 Thread Thomas Gleixner
On Fri, 13 Sep 2013, Fan Du wrote: > (2) What I have been bugging you around here for this long time is really the > second > problem, I'm sorry I didn't make it clearly to you and others, which is > below: > > Why using wall clock time to calculate soft/hard IPsec events when > xfrm_state

Re: [PATCHv3 linux-next] hrtimer: Add notifier when clock_was_set was called

2013-09-12 Thread Fan Du
Hi Dave/Thomas On 2013年09月13日 01:32, David Miller wrote: From: Thomas Gleixner Date: Thu, 12 Sep 2013 16:43:37 +0200 (CEST) So what about going back to timer_list timers and simply utilize register_pm_notifier(), which will tell you that the system resumed? The thing to understand is that th

Re: [PATCHv3 linux-next] hrtimer: Add notifier when clock_was_set was called

2013-09-12 Thread Thomas Gleixner
On Thu, 12 Sep 2013, John Stultz wrote: > On Thu, Sep 12, 2013 at 6:44 AM, Herbert Xu > wrote: > > On Thu, Sep 12, 2013 at 03:21:24PM +0200, Thomas Gleixner wrote: > >> > >> > (3): http://www.spinics.net/lists/netdev/msg245169.html > >> > >> Thanks for the explanation so far. > >> > >> What's sti

Re: [PATCHv3 linux-next] hrtimer: Add notifier when clock_was_set was called

2013-09-12 Thread John Stultz
On Thu, Sep 12, 2013 at 6:44 AM, Herbert Xu wrote: > On Thu, Sep 12, 2013 at 03:21:24PM +0200, Thomas Gleixner wrote: >> >> > (3): http://www.spinics.net/lists/netdev/msg245169.html >> >> Thanks for the explanation so far. >> >> What's still unclear to me is why these timeouts are bound to wall >>

Re: [PATCHv3 linux-next] hrtimer: Add notifier when clock_was_set was called

2013-09-12 Thread Thomas Gleixner
On Thu, 12 Sep 2013, David Miller wrote: > From: Thomas Gleixner > Date: Thu, 12 Sep 2013 16:43:37 +0200 (CEST) > > > So what about going back to timer_list timers and simply utilize > > register_pm_notifier(), which will tell you that the system resumed? > > The thing to understand is that ther

Re: [PATCHv3 linux-next] hrtimer: Add notifier when clock_was_set was called

2013-09-12 Thread David Miller
From: Thomas Gleixner Date: Thu, 12 Sep 2013 16:43:37 +0200 (CEST) > So what about going back to timer_list timers and simply utilize > register_pm_notifier(), which will tell you that the system resumed? The thing to understand is that there are two timeouts for an IPSEC rule, a soft and a hard

Re: [PATCHv3 linux-next] hrtimer: Add notifier when clock_was_set was called

2013-09-12 Thread Thomas Gleixner
On Thu, 12 Sep 2013, Herbert Xu wrote: > On Thu, Sep 12, 2013 at 03:21:24PM +0200, Thomas Gleixner wrote: > > > > > (3): http://www.spinics.net/lists/netdev/msg245169.html > > > > Thanks for the explanation so far. > > > > What's still unclear to me is why these timeouts are bound to wall > > tim

Re: [PATCHv3 linux-next] hrtimer: Add notifier when clock_was_set was called

2013-09-12 Thread Herbert Xu
On Thu, Sep 12, 2013 at 03:21:24PM +0200, Thomas Gleixner wrote: > > > (3): http://www.spinics.net/lists/netdev/msg245169.html > > Thanks for the explanation so far. > > What's still unclear to me is why these timeouts are bound to wall > time in the first place. > > Is there any real reason why

Re: [PATCHv3 linux-next] hrtimer: Add notifier when clock_was_set was called

2013-09-12 Thread Thomas Gleixner
On Tue, 20 Aug 2013, Fan Du wrote: > Thanks for your patience. Please let me take a few seconds try to > explain this. Sorry for the late reply. > Current xfrm layers has *one* hrtimer to guard Ipsec keys timeout, > The timeout could be measured in either of below two ways: > > (1) The timer i

Re: [PATCHv3 linux-next] hrtimer: Add notifier when clock_was_set was called

2013-08-19 Thread Fan Du
On 2013年08月18日 17:05, Thomas Gleixner wrote: On Wed, 14 Aug 2013, Fan Du wrote: From e3929d4fdfad5b40fd8cad0e217597670d1aef54 Mon Sep 17 00:00:00 2001 From: Fan Du Date: Wed, 14 Aug 2013 16:39:23 +0800 Subject: [PATCHv3 linux-next] hrtimer: Add notifier when clock_was_set was called When

Re: [PATCHv3 linux-next] hrtimer: Add notifier when clock_was_set was called

2013-08-18 Thread Thomas Gleixner
On Wed, 14 Aug 2013, Fan Du wrote: > From e3929d4fdfad5b40fd8cad0e217597670d1aef54 Mon Sep 17 00:00:00 2001 > From: Fan Du > Date: Wed, 14 Aug 2013 16:39:23 +0800 > Subject: [PATCHv3 linux-next] hrtimer: Add notifier when clock_was_set was > called > > When clock_was_set

Re: [PATCHv3 linux-next] hrtimer: Add notifier when clock_was_set was called

2013-08-14 Thread Sergei Shtylyov
Hello. On 08/14/2013 12:52 PM, Fan Du wrote: From e3929d4fdfad5b40fd8cad0e217597670d1aef54 Mon Sep 17 00:00:00 2001 From: Fan Du Date: Wed, 14 Aug 2013 16:39:23 +0800 Subject: [PATCHv3 linux-next] hrtimer: Add notifier when clock_was_set was called This header is not needed. When

[PATCHv3 linux-next] hrtimer: Add notifier when clock_was_set was called

2013-08-14 Thread Fan Du
From e3929d4fdfad5b40fd8cad0e217597670d1aef54 Mon Sep 17 00:00:00 2001 From: Fan Du Date: Wed, 14 Aug 2013 16:39:23 +0800 Subject: [PATCHv3 linux-next] hrtimer: Add notifier when clock_was_set was called When clock_was_set is called in case of system wall time change or host resume from