Skip to contentSkip to conversation

2.5.30-dj1 (sort of)

DISCUSSION [email protected] 1 participant 1 message Aug 2, 2002

lore
Share & tools
lore
#0 lore raw

Tim Schmielau posted this bit. 2.5.30-dj1 wants it.

include/linux/times.h Sat Jul 13 09:06:05 2002 renamed from include/linux/times.h Sat Jul 13 08:40:21 2002 +15 -0
@@ -2,7 +2,22 @@
 #define _LINUX_TIMES_H
 
 #ifdef __KERNEL__
+#include <asm/div64.h>
+#include <asm/types.h>
+
 # define jiffies_to_clock_t(x) ((x) / (HZ / USER_HZ))
+
+/*
+ * returning a different type than the function name says is
+ * ugly as hell, and only intended to stay until I know what type
+ * should replace clock_t
+ */
+
+static inline u64 jiffies_64_to_clock_t(u64 x)
+{
+       do_div(x, HZ / USER_HZ);
+       return x;
+}
 #endif
 
 struct tms {
Quoted 3 lines

Chances are this won't even boot for many people (if any at all). There's something nasty in my tree right now which makes it fail to find init(1).

Maybe someone will post a patch for that while you are on holiday :)

VFS: Cannot open root device "1602" or 16:02
Please append a correct "root=" boot option

Kernel panic: VFS: Unable to mount root fs on 16:02
Signature · 2 lines
Randy Hron
http://home.earthlink.net/~rwhron/kernel/bigbox.html