]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/time.h
Auto-update from upstream
[linux-2.6-omap-h63xx.git] / include / linux / time.h
index 8e83f4e778bb11657f2363cf82eb491562615439..797ccd813bb004a1f02e52651f0c49260617254d 100644 (file)
@@ -95,13 +95,14 @@ struct itimerval;
 extern int do_setitimer(int which, struct itimerval *value, struct itimerval *ovalue);
 extern int do_getitimer(int which, struct itimerval *value);
 extern void getnstimeofday (struct timespec *tv);
+extern void getnstimestamp(struct timespec *ts);
 
 extern struct timespec timespec_trunc(struct timespec t, unsigned gran);
 
 static inline void
 set_normalized_timespec (struct timespec *ts, time_t sec, long nsec)
 {
-       while (nsec > NSEC_PER_SEC) {
+       while (nsec >= NSEC_PER_SEC) {
                nsec -= NSEC_PER_SEC;
                ++sec;
        }