[RFC][PATCH 4/4] support new soft-timer subsystem on non-NEWTOD archs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 17.05.2005 [16:33:00 -0700], Nishanth Aravamudan wrote:
> On 13.05.2005 [17:16:35 -0700], john stultz wrote:
> > All,
> > 	This patch implements the architecture independent portion of the new
> > time of day subsystem. For a brief description on the rework, see here:
> > http://lwn.net/Articles/120850/ (Many thanks to the LWN team for that
> > easy to understand writeup!)
> > 
> > 	I intend this to be the last RFC release and to submit this patch to
> > Andrew for for testing near the end of this month. So please, if you
> > have any complaints, suggestions, or blocking issues, let me know.
> 
> I have been working closely with John to re-work the soft-timer subsytem
> to use the new timeofday() subsystem. The following patches attempts to
> begin this process. I would greatly appreciate any comments.

Description: Support the new soft-timer interfaces on non-NEWTOD archs
by emulating nanoseconds via jiffies.

Signed-off-by: Nishanth Aravamudan <[email protected]>

--- 2.6.12-rc4-tod/include/linux/timeofday.h	2005-05-17 13:01:12.000000000 -0700
+++ 2.6.12-rc4-tod-timer/include/linux/timeofday.h	2005-05-17 13:02:01.000000000 -0700
@@ -55,5 +55,14 @@ static inline nsec_t timeval_to_ns(struc
 }
 #else /* CONFIG_NEWTOD */
 #define timeofday_init()
+/*
+ * do_monotonic_clock():
+ *    Emulate the monotonically increasing number of nanoseconds
+ *    of NEWTOD archs via jiffies.
+ */
+nsec_t do_monotonic_clock(void)
+{
+	return jiffies_to_nsecs(jiffies);
+}
 #endif /* CONFIG_NEWTOD */
 #endif /* _LINUX_TIMEOFDAY_H */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux