Ignore:
Timestamp:
Jun 6, 2009, 4:22:27 AM (16 years ago)
Author:
Paul Smedley
Message:

Move functions out of config.h into appropriate linux header

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/include/linux/time.h

    r32 r441  
    114114#endif
    115115
     116/* wrapper for getnstimeofday()
     117 * it's needed for recent 2.6 kernels, too, due to lack of EXPORT_SYMBOL
     118 */
     119#define getnstimeofday(x) do { \
     120        struct timeval __x; \
     121        do_gettimeofday(&__x); \
     122        (x)->tv_sec = __x.tv_sec;       \
     123        (x)->tv_nsec = __x.tv_usec * 1000; \
     124} while (0)
     125
     126#define do_posix_clock_monotonic_gettime getnstimeofday
     127
    116128#endif
Note: See TracChangeset for help on using the changeset viewer.