[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-id: <457DE27E.5000100@cosmosbay.com>
Date: Mon, 11 Dec 2006 23:58:06 +0100
From: Eric Dumazet <dada1@...mosbay.com>
To: Andrew Morton <akpm@...l.org>
Cc: Linux kernel <linux-kernel@...r.kernel.org>,
"David S. Miller" <davem@...emloft.net>
Subject: [PATCH] Introduce jiffies_32 and related compare functions
Some subsystems dont need more than 32bits timestamps.
See for example net/ipv4/inetpeer.c and include/net/tcp.h :
#define tcp_time_stamp ((__u32)(jiffies))
Because most timeouts should work with 'normal jiffies' that are 32bits on
32bits platforms, it makes sense to be able to use only 32bits to store them
and not 64 bits, to save ram.
This patch introduces jiffies_32, and related comparison functions
time_after32(), time_before32(), time_after_eq32() and time_before_eq32().
I plan to use this infrastructure in network code for example (struct
dst_entry comes to mind).
Signed-off-by: Eric Dumazet <dada1@...mosbay.com>
View attachment "jiffies_32.patch" of type "text/plain" (1173 bytes)
Powered by blists - more mailing lists