Re: [PATCH net-next] time: jiffies_delta_to_clock_t() helper to the rescue

2012-08-13 Thread Thomas Gleixner
On Thu, 9 Aug 2012, Eric Dumazet wrote: > From: Eric Dumazet > > Various /proc/net files sometimes report crazy timer values, expressed > in clock_t units. > > This happens when an expired timer delta (expires - jiffies) is passed > to jiffies_to_clock_t(). > > This function has an overflow in

Re: [PATCH net-next] time: jiffies_delta_to_clock_t() helper to the rescue

2012-08-09 Thread David Miller
From: Eric Dumazet Date: Thu, 09 Aug 2012 09:13:53 +0200 > From: Eric Dumazet > > Various /proc/net files sometimes report crazy timer values, expressed > in clock_t units. > > This happens when an expired timer delta (expires - jiffies) is passed > to jiffies_to_clock_t(). > > This function

[PATCH net-next] time: jiffies_delta_to_clock_t() helper to the rescue

2012-08-09 Thread Eric Dumazet
From: Eric Dumazet Various /proc/net files sometimes report crazy timer values, expressed in clock_t units. This happens when an expired timer delta (expires - jiffies) is passed to jiffies_to_clock_t(). This function has an overflow in : return div_u64((u64)x * TICK_NSEC, NSEC_PER_SEC / USER_