Ignore:
Timestamp:
Mar 18, 2021, 8:57:36 PM (4 years ago)
Author:
David Azarewicz
Message:

Merge changes from Paul's uniaud32next branch.

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/include/linux/time.h

    r479 r679  
    44#include <asm/param.h>
    55#include <linux/types.h>
     6#include <linux/ktime.h>
     7#include <linux/time64.h>
     8#include <linux/math64.h>
     9
     10#define NSEC_PER_SEC    1000000000L
     11
    612
    713#ifndef _STRUCT_TIMESPEC
     
    1218};
    1319#endif /* _STRUCT_TIMESPEC */
     20
     21static inline int timespec_equal(const struct timespec *a,
     22                                 const struct timespec *b)
     23{
     24        return (a->tv_sec == b->tv_sec) && (a->tv_nsec == b->tv_nsec);
     25}
    1426
    1527/*
     
    130142void msleep(unsigned int msecs);
    131143
     144/**
     145 * ns_to_timespec - Convert nanoseconds to timespec
     146 * @nsec:       the nanoseconds value to be converted
     147 *
     148 * Returns the timespec representation of the nsec parameter.
     149 */
     150extern struct timespec ns_to_timespec(const s64 nsec);
     151#define getrawmonotonic(ts) do_posix_clock_monotonic_gettime(ts)
    132152#endif
Note: See TracChangeset for help on using the changeset viewer.