linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][v850]  Add sched_clock on v850
@ 2003-10-06  5:29 Miles Bader
  0 siblings, 0 replies; only message in thread
From: Miles Bader @ 2003-10-06  5:29 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel

Linus, please apply.

This is a horrid implementation, but whatever.

diff -ruN -X../cludes linux-2.6.0-test6-moo/arch/v850/kernel/time.c linux-2.6.0-test6-moo-v850-20031006/arch/v850/kernel/time.c
--- linux-2.6.0-test6-moo/arch/v850/kernel/time.c	2003-07-14 13:14:39.000000000 +0900
+++ linux-2.6.0-test6-moo-v850-20031006/arch/v850/kernel/time.c	2003-10-03 17:06:47.000000000 +0900
@@ -29,6 +29,14 @@
 
 #define TICK_SIZE	(tick_nsec / 1000)
 
+/*
+ * Scheduler clock - returns current time in nanosec units.
+ */
+unsigned long long sched_clock(void)
+{
+	return (unsigned long long)jiffies * (1000000000 / HZ);
+}
+
 static inline void do_profile (unsigned long pc)
 {
 	if (prof_buffer && current->pid) {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-10-06  5:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-06  5:29 [PATCH][v850] Add sched_clock on v850 Miles Bader

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).