projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
V4L/DVB (5478): Use ARRAY_SIZE and a cleaner logic for initializing tuner
[powerpc.git]
/
kernel
/
time.c
diff --git
a/kernel/time.c
b/kernel/time.c
index
c6c80ea
..
ba18ec4
100644
(file)
--- a/
kernel/time.c
+++ b/
kernel/time.c
@@
-452,6
+452,7
@@
struct timespec ns_to_timespec(const s64 nsec)
return ts;
}
return ts;
}
+EXPORT_SYMBOL(ns_to_timespec);
/**
* ns_to_timeval - Convert nanoseconds to timeval
/**
* ns_to_timeval - Convert nanoseconds to timeval
@@
-469,6
+470,7
@@
struct timeval ns_to_timeval(const s64 nsec)
return tv;
}
return tv;
}
+EXPORT_SYMBOL(ns_to_timeval);
/*
* Convert jiffies to milliseconds and back.
/*
* Convert jiffies to milliseconds and back.
@@
-635,6
+637,7
@@
timeval_to_jiffies(const struct timeval *value)
(((u64)usec * USEC_CONVERSION + USEC_ROUND) >>
(USEC_JIFFIE_SC - SEC_JIFFIE_SC))) >> SEC_JIFFIE_SC;
}
(((u64)usec * USEC_CONVERSION + USEC_ROUND) >>
(USEC_JIFFIE_SC - SEC_JIFFIE_SC))) >> SEC_JIFFIE_SC;
}
+EXPORT_SYMBOL(timeval_to_jiffies);
void jiffies_to_timeval(const unsigned long jiffies, struct timeval *value)
{
void jiffies_to_timeval(const unsigned long jiffies, struct timeval *value)
{
@@
-649,6
+652,7
@@
void jiffies_to_timeval(const unsigned long jiffies, struct timeval *value)
tv_usec /= NSEC_PER_USEC;
value->tv_usec = tv_usec;
}
tv_usec /= NSEC_PER_USEC;
value->tv_usec = tv_usec;
}
+EXPORT_SYMBOL(jiffies_to_timeval);
/*
* Convert jiffies/jiffies_64 to clock_t and back.
/*
* Convert jiffies/jiffies_64 to clock_t and back.