netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] DECNET: Normalize jiffies reported to userspace
@ 2003-11-10 16:48 YOSHIFUJI Hideaki / 吉藤英明
  2003-11-11  7:03 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: YOSHIFUJI Hideaki / 吉藤英明 @ 2003-11-10 16:48 UTC (permalink / raw)
  To: davem; +Cc: netdev

Hello.

jiffies normalization for decnet.

===== net/decnet/dn_route.c 1.18 vs edited =====
--- 1.18/net/decnet/dn_route.c	Wed Jul 23 15:33:06 2003
+++ edited/net/decnet/dn_route.c	Tue Nov 11 01:31:31 2003
@@ -77,6 +77,7 @@
 #include <linux/string.h>
 #include <linux/netfilter_decnet.h>
 #include <linux/rcupdate.h>
+#include <linux/times.h>
 #include <asm/errno.h>
 #include <net/neighbour.h>
 #include <net/dst.h>
@@ -1508,11 +1509,11 @@
 		RTA_PUT(skb, RTA_GATEWAY, 2, &rt->rt_gateway);
 	if (rtnetlink_put_metrics(skb, rt->u.dst.metrics) < 0)
 		goto rtattr_failure;
-	ci.rta_lastuse = jiffies - rt->u.dst.lastuse;
+	ci.rta_lastuse = jiffies_to_clock_t(jiffies - rt->u.dst.lastuse);
 	ci.rta_used     = rt->u.dst.__use;
 	ci.rta_clntref  = atomic_read(&rt->u.dst.__refcnt);
 	if (rt->u.dst.expires)
-		ci.rta_expires = rt->u.dst.expires - jiffies;
+		ci.rta_expires = jiffies_to_clock_t(rt->u.dst.expires - jiffies);
 	else
 		ci.rta_expires = 0;
 	ci.rta_error    = rt->u.dst.error;

-- 
Hideaki YOSHIFUJI @ USAGI Project <yoshfuji@linux-ipv6.org>
GPG FP: 9022 65EB 1ECF 3AD1 0BDF  80D8 4807 F894 E062 0EEA

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] DECNET: Normalize jiffies reported to userspace
  2003-11-10 16:48 [PATCH] DECNET: Normalize jiffies reported to userspace YOSHIFUJI Hideaki / 吉藤英明
@ 2003-11-11  7:03 ` David S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2003-11-11  7:03 UTC (permalink / raw)
  To: YOSHIFUJI Hideaki / _$B5HF#1QL@; +Cc: netdev

On Mon, 10 Nov 2003 10:48:43 -0600 (CST)
YOSHIFUJI Hideaki / _$B5HF#1QL@ <yoshfuji@linux-ipv6.org> wrote:

> jiffies normalization for decnet.

Applied, arigato Yoshfuji.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-11-11  7:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-10 16:48 [PATCH] DECNET: Normalize jiffies reported to userspace YOSHIFUJI Hideaki / 吉藤英明
2003-11-11  7:03 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).