Ignore:
Timestamp:
Jan 1, 2021, 5:31:48 AM (5 years ago)
Author:
Paul Smedley
Message:

Add source for uniaud32 based on code from linux kernel 5.4.86

Location:
GPL/branches/uniaud32-next
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-next/include/linux/time.h

    r479 r615  
    44#include <asm/param.h>
    55#include <linux/types.h>
     6#include <linux/ktime.h>
     7#include <linux/time64.h>
     8
     9#define NSEC_PER_SEC    1000000000L
     10
    611
    712#ifndef _STRUCT_TIMESPEC
     
    1217};
    1318#endif /* _STRUCT_TIMESPEC */
     19
     20static inline int timespec_equal(const struct timespec *a,
     21                                 const struct timespec *b)
     22{
     23        return (a->tv_sec == b->tv_sec) && (a->tv_nsec == b->tv_nsec);
     24}
    1425
    1526/*
     
    130141void msleep(unsigned int msecs);
    131142
     143/**
     144 * ns_to_timespec - Convert nanoseconds to timespec
     145 * @nsec:       the nanoseconds value to be converted
     146 *
     147 * Returns the timespec representation of the nsec parameter.
     148 */
     149extern struct timespec ns_to_timespec(const s64 nsec);
     150#define getrawmonotonic(ts) do_posix_clock_monotonic_gettime(ts)
    132151#endif
Note: See TracChangeset for help on using the changeset viewer.