patch-2.1.71 linux/include/linux/time.h
Next file: linux/include/linux/tty_driver.h
Previous file: linux/include/linux/scc.h
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Wed Dec 3 04:24:29 1997
- Orig file:
v2.1.70/linux/include/linux/time.h
- Orig date:
Mon Dec 1 12:04:15 1997
diff -u --recursive --new-file v2.1.70/linux/include/linux/time.h linux/include/linux/time.h
@@ -15,7 +15,7 @@
* change timeval to jiffies, trying to avoid the
* most obvious overflows..
*/
-static inline unsigned long
+static __inline__ unsigned long
timespec_to_jiffies(struct timespec *value)
{
unsigned long sec = value->tv_sec;
@@ -28,7 +28,7 @@
return HZ * sec + nsec;
}
-static inline void
+static __inline__ void
jiffies_to_timespec(unsigned long jiffies, struct timespec *value)
{
value->tv_nsec = (jiffies % HZ) * (1000000000L / HZ);
FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen, [email protected]