Ignore:
Timestamp:
Jan 4, 2021, 10:15:17 AM (5 years ago)
Author:
Paul Smedley
Message:

Update source to linux 5.10.4 level

File:
1 edited

Legend:

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

    r615 r629  
    55#include <linux/jiffies.h>
    66
    7 /*
    8  * ktime_t:
    9  *
    10  * A single 64-bit variable is used to store the hrtimers
    11  * internal representation of time values in scalar nanoseconds. The
    12  * design plays out best on 64-bit CPUs, where most conversions are
    13  * NOPs and most arithmetic ktime_t operations are plain arithmetic
    14  * operations.
    15  *
    16  */
    17 union ktime {
    18         s64     tv64;
    19 };
     7/* Nanosecond scalar representation for kernel time values */
     8typedef s64     ktime_t;
    209
    21 typedef union ktime ktime_t;            /* Kill this */
    2210#define ktime_get_ts(x) do_posix_clock_monotonic_gettime(x)
    2311/* Map the ktime_t to timespec conversion to ns_to_timespec function */
    24 #define ktime_to_timespec(kt)           ns_to_timespec((kt).tv64)
    25 #define ktime_get_ts64 ktime_get_ts
     12#define ktime_to_timespec(kt)   ns_to_timespec((kt).tv64)
     13#define ktime_get_ts64          ktime_get_ts
     14#define ktime_get_raw_ts64      getrawmonotonic
     15#define ktime_get_real_ts64     getnstimeofday
     16
     17/* Map the ktime_t to timespec conversion to ns_to_timespec function */
     18#define ktime_to_timespec64(kt)         ns_to_timespec64((kt))
    2619#include <linux/timekeeping.h>
    2720
Note: See TracChangeset for help on using the changeset viewer.