函数源码

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source File:include\linux\ktime.h Create Date:2022-07-27 06:39:45
首页 Copyright©Brick

255
256
257
258
259
260
261
262
263
264
265
266
267
/*
 * The resolution of the clocks. The resolution value is returned in
 * the clock_getres() system call to give application programmers an
 * idea of the (in)accuracy of timers. Timer values are rounded up to
 * this resolution values.
 */
#define LOW_RES_NSEC        TICK_NSEC
#define KTIME_LOW_RES       (LOW_RES_NSEC)
 
static inline ktime_t ns_to_ktime(u64 ns)
{
    return ns;
}