Home
last modified time | relevance | path

Searched refs:clk (Results 1 – 2 of 2) sorted by relevance

/kernel/time/
Dposix-clock.c22 struct posix_clock *clk = fp->private_data; in get_posix_clock() local
24 down_read(&clk->rwsem); in get_posix_clock()
26 if (!clk->zombie) in get_posix_clock()
27 return clk; in get_posix_clock()
29 up_read(&clk->rwsem); in get_posix_clock()
34 static void put_posix_clock(struct posix_clock *clk) in put_posix_clock() argument
36 up_read(&clk->rwsem); in put_posix_clock()
42 struct posix_clock *clk = get_posix_clock(fp); in posix_clock_read() local
45 if (!clk) in posix_clock_read()
48 if (clk->ops.read) in posix_clock_read()
[all …]
Dtimer.c210 unsigned long clk; member
516 static int calc_wheel_index(unsigned long expires, unsigned long clk, in calc_wheel_index() argument
519 unsigned long delta = expires - clk; in calc_wheel_index()
539 idx = clk & LVL_MASK; in calc_wheel_index()
540 *bucket_expiry = clk; in calc_wheel_index()
547 expires = clk + WHEEL_TIMEOUT_MAX; in calc_wheel_index()
616 idx = calc_wheel_index(timer->expires, base->clk, &bucket_expiry); in internal_add_timer()
907 if ((long)(jnow - base->clk) < 1) in forward_timer_base()
915 base->clk = jnow; in forward_timer_base()
917 if (WARN_ON_ONCE(time_before(base->next_expiry, base->clk))) in forward_timer_base()
[all …]