Home
last modified time | relevance | path

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

/kernel/sched/
Dclock.c151 struct sched_clock_data *scd = cpu_sdc(cpu); in sched_clock_init() local
153 scd->tick_raw = 0; in sched_clock_init()
154 scd->tick_gtod = ktime_now; in sched_clock_init()
155 scd->clock = ktime_now; in sched_clock_init()
195 static u64 sched_clock_local(struct sched_clock_data *scd) in sched_clock_local() argument
202 delta = now - scd->tick_raw; in sched_clock_local()
206 old_clock = scd->clock; in sched_clock_local()
214 clock = scd->tick_gtod + delta; in sched_clock_local()
215 min_clock = wrap_max(scd->tick_gtod, old_clock); in sched_clock_local()
216 max_clock = wrap_max(old_clock, scd->tick_gtod + TICK_NSEC); in sched_clock_local()
[all …]