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.c204 unsigned long clk; member
498 static int calc_wheel_index(unsigned long expires, unsigned long clk) in calc_wheel_index() argument
500 unsigned long delta = expires - clk; in calc_wheel_index()
520 idx = clk & LVL_MASK; in calc_wheel_index()
527 expires = clk + WHEEL_TIMEOUT_MAX; in calc_wheel_index()
553 idx = calc_wheel_index(timer->expires, base->clk); in __internal_add_timer()
589 if (time_before(timer->expires, base->clk)) { in trigger_dyntick_cpu()
594 base->next_expiry = base->clk; in trigger_dyntick_cpu()
902 if ((long)(jnow - base->clk) < 2) in forward_timer_base()
910 base->clk = jnow; in forward_timer_base()
[all …]