Home
last modified time | relevance | path

Searched refs:now (Results 1 – 25 of 2478) sorted by relevance

12345678910>>...100

/OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/mali/common/
H A Dmali_pm_metrics.c59 ktime_t now; in mali_pm_record_job_status() local
65 now = ktime_get(); in mali_pm_record_job_status()
66 diff = ktime_sub(now, mdev->mali_metrics.time_period_start); in mali_pm_record_job_status()
70 mdev->mali_metrics.time_period_start = now; in mali_pm_record_job_status()
75 ktime_t now; in mali_pm_record_gpu_idle() local
83 now = ktime_get(); in mali_pm_record_gpu_idle()
88 diff = ktime_sub(now, mdev->mali_metrics.time_period_start_gp); in mali_pm_record_gpu_idle()
91 mdev->mali_metrics.time_period_start_gp = now; in mali_pm_record_gpu_idle()
95 diff = ktime_sub(now, mdev->mali_metrics.time_period_start); in mali_pm_record_gpu_idle()
98 mdev->mali_metrics.time_period_start = now; in mali_pm_record_gpu_idle()
[all …]
/OK3568_Linux_fs/kernel/net/rxrpc/
H A Dcall_event.c31 unsigned long now = jiffies; in rxrpc_propose_ping() local
32 unsigned long ping_at = now + rxrpc_idle_ack_delay; in rxrpc_propose_ping()
36 rxrpc_reduce_call_timer(call, ping_at, now, in rxrpc_propose_ping()
112 unsigned long now = jiffies, ack_at; in __rxrpc_propose_ACK() local
120 ack_at += now; in __rxrpc_propose_ACK()
123 rxrpc_reduce_call_timer(call, ack_at, now, in __rxrpc_propose_ACK()
162 ktime_t now, max_age, oldest, ack_ts; in rxrpc_resend() local
168 now = ktime_get_real(); in rxrpc_resend()
169 max_age = ktime_sub_us(now, jiffies_to_usecs(call->peer->rto_j)); in rxrpc_resend()
184 oldest = now; in rxrpc_resend()
[all …]
/OK3568_Linux_fs/kernel/include/trace/events/
H A Diocost.h16 TP_PROTO(struct ioc_gq *iocg, const char *path, struct ioc_now *now,
19 TP_ARGS(iocg, path, now, last_period, cur_period, vtime),
24 __field(u64, now)
39 __entry->now = now->now;
40 __entry->vnow = now->vnow;
41 __entry->vrate = now->vrate;
55 __entry->now, __entry->vnow, __entry->vrate,
64 TP_PROTO(struct ioc_gq *iocg, const char *path, struct ioc_now *now,
68 TP_ARGS(iocg, path, now, old_inuse, new_inuse,
74 __field(u64, now)
[all …]
H A Dalarmtimer.h47 TP_PROTO(struct alarm *alarm, ktime_t now),
49 TP_ARGS(alarm, now),
55 __field(s64, now)
62 __entry->now = now;
69 __entry->now
75 TP_PROTO(struct alarm *alarm, ktime_t now),
77 TP_ARGS(alarm, now)
82 TP_PROTO(struct alarm *alarm, ktime_t now),
84 TP_ARGS(alarm, now)
89 TP_PROTO(struct alarm *alarm, ktime_t now),
[all …]
H A Dtimer.h64 __field( unsigned long, now )
72 __entry->now = jiffies;
78 (long)__entry->expires - __entry->now,
98 __field( unsigned long, now )
105 __entry->now = jiffies;
111 __entry->timer, __entry->function, __entry->now,
234 TP_PROTO(struct hrtimer *hrtimer, ktime_t *now),
236 TP_ARGS(hrtimer, now),
240 __field( s64, now )
246 __entry->now = *now;
[all …]
/OK3568_Linux_fs/kernel/kernel/time/
H A Dtick-sched.c55 static void tick_do_update_jiffies64(ktime_t now) in tick_do_update_jiffies64() argument
64 delta = ktime_sub(now, READ_ONCE(last_jiffies_update)); in tick_do_update_jiffies64()
72 delta = ktime_sub(now, last_jiffies_update); in tick_do_update_jiffies64()
123 static void tick_sched_do_timer(struct tick_sched *ts, ktime_t now) in tick_sched_do_timer() argument
148 tick_do_update_jiffies64(now); in tick_sched_do_timer()
529 static void tick_nohz_update_jiffies(ktime_t now) in tick_nohz_update_jiffies() argument
533 __this_cpu_write(tick_cpu_sched.idle_waketime, now); in tick_nohz_update_jiffies()
536 tick_do_update_jiffies64(now); in tick_nohz_update_jiffies()
546 update_ts_time_stats(int cpu, struct tick_sched *ts, ktime_t now, u64 *last_update_time) in update_ts_time_stats() argument
551 delta = ktime_sub(now, ts->idle_entrytime); in update_ts_time_stats()
[all …]
H A Dtimer_list.c23 u64 now; member
57 int idx, u64 now) in print_timer() argument
68 (long long)(ktime_to_ns(hrtimer_get_softexpires(timer)) - now), in print_timer()
69 (long long)(ktime_to_ns(hrtimer_get_expires(timer)) - now)); in print_timer()
74 u64 now) in print_active_timers() argument
104 print_timer(m, timer, &tmp, i, now); in print_active_timers()
112 print_base(struct seq_file *m, struct hrtimer_clock_base *base, u64 now) in print_base() argument
127 print_active_timers(m, base, now + ktime_to_ns(base->offset)); in print_base()
130 static void print_cpu(struct seq_file *m, int cpu, u64 now) in print_cpu() argument
138 print_base(m, cpu_base->clock_base + i, now); in print_cpu()
[all …]
/OK3568_Linux_fs/external/xserver/os/
H A DWaitFor.c105 static void DoTimer(OsTimerPtr timer, CARD32 now);
106 static void DoTimers(CARD32 now);
129 CARD32 now = GetTimeInMillis(); in check_timers() local
130 int timeout = timer->expires - now; in check_timers()
133 DoTimers(now); in check_timers()
255 CARD32 now; in CheckAllTimers() local
259 now = GetTimeInMillis(); in CheckAllTimers()
262 if (timer->expires - now > timer->delta + 250) { in CheckAllTimers()
263 DoTimer(timer, now); in CheckAllTimers()
271 DoTimer(OsTimerPtr timer, CARD32 now) in DoTimer() argument
[all …]
/OK3568_Linux_fs/kernel/block/
H A Dblk-iocost.c560 u64 now; member
946 static void ioc_refresh_vrate(struct ioc *ioc, struct ioc_now *now) in ioc_refresh_vrate() argument
948 s64 pleft = ioc->period_at + ioc->period_us - now->now; in ioc_refresh_vrate()
977 static void ioc_now(struct ioc *ioc, struct ioc_now *now) in ioc_now() argument
981 now->now_ns = ktime_get(); in ioc_now()
982 now->now = ktime_to_us(now->now_ns); in ioc_now()
983 now->vrate = atomic64_read(&ioc->vtime_rate); in ioc_now()
995 now->vnow = ioc->period_at_vtime + in ioc_now()
996 (now->now - ioc->period_at) * now->vrate; in ioc_now()
1000 static void ioc_start_period(struct ioc *ioc, struct ioc_now *now) in ioc_start_period() argument
[all …]
/OK3568_Linux_fs/u-boot/arch/arm/mach-omap2/
H A Dtimer.c59 unsigned long now, last = readl(&timer_base->tcrr); in __udelay() local
62 now = readl(&timer_base->tcrr); in __udelay()
63 if (last > now) /* count up timer overflow */ in __udelay()
64 tmo -= TIMER_OVERFLOW_VAL - last + now + 1; in __udelay()
66 tmo -= now - last; in __udelay()
67 last = now; in __udelay()
74 ulong now = readl(&timer_base->tcrr) / (TIMER_CLOCK / CONFIG_SYS_HZ); in get_timer_masked() local
76 if (now >= gd->arch.lastinc) { /* normal mode (non roll) */ in get_timer_masked()
78 gd->arch.tbl += (now - gd->arch.lastinc); in get_timer_masked()
81 CONFIG_SYS_HZ)) - gd->arch.lastinc) + now; in get_timer_masked()
[all …]
/OK3568_Linux_fs/u-boot/arch/nds32/cpu/n1213/ag101/
H A Dtimer.c97 ulong now = readl(&tmr->timer3_counter) / (TIMER_CLOCK / CONFIG_SYS_HZ); in get_timer_masked() local
99 ulong now = readl(&tmr->timer3_counter) / in get_timer_masked() local
103 debug("%s(): now = %lx, lastdec = %lx\n", __func__, now, lastdec); in get_timer_masked()
105 if (lastdec >= now) { in get_timer_masked()
110 timestamp += lastdec - now; in get_timer_masked()
121 timestamp += lastdec + TIMER_LOAD_VAL - now; in get_timer_masked()
124 lastdec = now; in get_timer_masked()
156 unsigned long now, last = readl(&tmr->timer3_counter); in __udelay() local
160 now = readl(&tmr->timer3_counter); in __udelay()
161 if (now > last) /* count down timer overflow */ in __udelay()
[all …]
/OK3568_Linux_fs/u-boot/arch/arm/cpu/armv7/sunxi/
H A Dtimer.c67 ulong now = TICKS_TO_HZ(read_timer()); in get_timer_masked() local
69 if (now >= gd->arch.lastinc) /* normal (non rollover) */ in get_timer_masked()
70 gd->arch.tbl += (now - gd->arch.lastinc); in get_timer_masked()
74 - gd->arch.lastinc) + now; in get_timer_masked()
76 gd->arch.lastinc = now; in get_timer_masked()
85 ulong now, last = read_timer(); in __udelay() local
88 now = read_timer(); in __udelay()
89 if (now > last) /* normal (non rollover) */ in __udelay()
90 tmo -= now - last; in __udelay()
92 tmo -= TIMER_LOAD_VAL - last + now; in __udelay()
[all …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/timens/
H A Dexec.c23 struct timespec now, tst; in main() local
28 if (sscanf(argv[1], "%ld", &now.tv_sec) != 1) in main()
33 if (abs(tst.tv_sec - now.tv_sec) > 5) in main()
34 return pr_fail("%ld %ld\n", now.tv_sec, tst.tv_sec); in main()
43 clock_gettime(CLOCK_MONOTONIC, &now); in main()
53 if (abs(tst.tv_sec - now.tv_sec) > 5) in main()
55 now.tv_sec, tst.tv_sec); in main()
73 if (abs(tst.tv_sec - now.tv_sec - OFFSET) > 5) in main()
75 now.tv_sec + OFFSET, tst.tv_sec); in main()
79 snprintf(now_str, sizeof(now_str), "%ld", now.tv_sec + OFFSET); in main()
/OK3568_Linux_fs/kernel/tools/power/cpupower/bench/
H A Dbenchmark.c35 long long now, then; in calculate_timespace() local
44 now = get_time(); in calculate_timespace()
48 timed = (unsigned int)(then - now); in calculate_timespace()
55 now = get_time(); in calculate_timespace()
59 timed = (unsigned int)(then - now); in calculate_timespace()
81 long long now, then; in start_benchmark() local
126 now = get_time(); in start_benchmark()
130 performance_time += then - now - sleep_time; in start_benchmark()
135 (long)(then - now), sleep_time, in start_benchmark()
152 now = get_time(); in start_benchmark()
[all …]
/OK3568_Linux_fs/external/xserver/Xext/
H A Dsleepuntil.c157 TimeStamp now; in SertafiedBlockHandler() local
161 now.milliseconds = GetTimeInMillis(); in SertafiedBlockHandler()
162 now.months = currentTime.months; in SertafiedBlockHandler()
163 if ((int) (now.milliseconds - currentTime.milliseconds) < 0) in SertafiedBlockHandler()
164 now.months++; in SertafiedBlockHandler()
167 if (CompareTimeStamps(pReq->revive, now) == LATER) in SertafiedBlockHandler()
180 delay = pReq->revive.milliseconds - now.milliseconds; in SertafiedBlockHandler()
188 TimeStamp now; in SertafiedWakeupHandler() local
190 now.milliseconds = GetTimeInMillis(); in SertafiedWakeupHandler()
191 now.months = currentTime.months; in SertafiedWakeupHandler()
[all …]
/OK3568_Linux_fs/kernel/kernel/sched/
H A Dpsi.c252 u64 now, state_start; in get_recent_times() local
262 now = cpu_clock(cpu); in get_recent_times()
281 times[s] += now - state_start; in get_recent_times()
367 static u64 update_averages(struct psi_group *group, u64 now) in update_averages() argument
376 if (now - expires >= psi_period) in update_averages()
377 missed_periods = div_u64(now - expires, psi_period); in update_averages()
387 period = now - (group->avg_last_update + (missed_periods * psi_period)); in update_averages()
388 group->avg_last_update = now; in update_averages()
426 u64 now; in psi_avgs_work() local
433 now = sched_clock(); in psi_avgs_work()
[all …]
H A Dpelt.h4 int __update_load_avg_blocked_se(u64 now, struct sched_entity *se);
5 int __update_load_avg_se(u64 now, struct cfs_rq *cfs_rq, struct sched_entity *se);
6 int __update_load_avg_cfs_rq(u64 now, struct cfs_rq *cfs_rq);
7 int update_rt_rq_load_avg(u64 now, struct rq *rq, int running);
8 int update_dl_rq_load_avg(u64 now, struct rq *rq, int running);
11 int update_thermal_load_avg(u64 now, struct rq *rq, u64 capacity);
19 update_thermal_load_avg(u64 now, struct rq *rq, u64 capacity) in update_thermal_load_avg() argument
169 update_cfs_rq_load_avg(u64 now, struct cfs_rq *cfs_rq) in update_cfs_rq_load_avg() argument
175 update_rt_rq_load_avg(u64 now, struct rq *rq, int running) in update_rt_rq_load_avg() argument
181 update_dl_rq_load_avg(u64 now, struct rq *rq, int running) in update_dl_rq_load_avg() argument
[all …]
/OK3568_Linux_fs/kernel/drivers/md/bcache/
H A Dutil.c165 uint64_t now, duration, last; in bch_time_stats_update() local
169 now = local_clock(); in bch_time_stats_update()
170 duration = time_after64(now, start_time) in bch_time_stats_update()
171 ? now - start_time : 0; in bch_time_stats_update()
172 last = time_after64(now, stats->last) in bch_time_stats_update()
173 ? now - stats->last : 0; in bch_time_stats_update()
188 stats->last = now ?: 1; in bch_time_stats_update()
203 uint64_t now = local_clock(); in bch_next_delay() local
213 if (time_before64(now + NSEC_PER_SEC * 5LLU / 2LLU, d->next)) in bch_next_delay()
214 d->next = now + NSEC_PER_SEC * 5LLU / 2LLU; in bch_next_delay()
[all …]
/OK3568_Linux_fs/kernel/include/net/
H A Dcodel_impl.h108 codel_time_t now) in codel_should_drop() argument
119 vars->ldelay = now - skb_time_func(skb); in codel_should_drop()
135 vars->first_above_time = now + params->interval; in codel_should_drop()
136 } else if (codel_time_after(now, vars->first_above_time)) { in codel_should_drop()
153 codel_time_t now; in codel_dequeue() local
160 now = codel_get_time(); in codel_dequeue()
162 skb_len_func, skb_time_func, backlog, now); in codel_dequeue()
167 } else if (codel_time_after_eq(now, vars->drop_next)) { in codel_dequeue()
177 codel_time_after_eq(now, vars->drop_next)) { in codel_dequeue()
198 backlog, now)) { in codel_dequeue()
[all …]
/OK3568_Linux_fs/kernel/kernel/trace/
H A Dtrace_clock.c98 u64 now, prev_time; in trace_clock_global() local
116 now = sched_clock_cpu(this_cpu); in trace_clock_global()
119 if ((s64)(now - prev_time) < 0) in trace_clock_global()
120 now = prev_time; in trace_clock_global()
133 if ((s64)(now - prev_time) < 0) in trace_clock_global()
134 now = prev_time; in trace_clock_global()
136 trace_clock_struct.prev_time = now; in trace_clock_global()
144 return now; in trace_clock_global()
/OK3568_Linux_fs/kernel/drivers/block/drbd/
H A Ddrbd_debugfs.c96 static void seq_print_one_request(struct seq_file *m, struct drbd_request *req, unsigned long now) in seq_print_one_request() argument
108 seq_printf(m, "\t%d", jiffies_to_msecs(now - req->start_jif)); in seq_print_one_request()
109 seq_print_age_or_dash(m, s & RQ_IN_ACT_LOG, now - req->in_actlog_jif); in seq_print_one_request()
110 seq_print_age_or_dash(m, s & RQ_LOCAL_PENDING, now - req->pre_submit_jif); in seq_print_one_request()
113 seq_print_age_or_dash(m, s & RQ_NET_SENT, now - req->pre_send_jif); in seq_print_one_request()
114 seq_print_age_or_dash(m, (s & RQ_NET_SENT) && !(s & RQ_NET_PENDING), now - req->acked_jif); in seq_print_one_request()
115 seq_print_age_or_dash(m, s & RQ_NET_DONE, now - req->net_done_jif); in seq_print_one_request()
122 static void seq_print_minor_vnr_req(struct seq_file *m, struct drbd_request *req, unsigned long now) in seq_print_minor_vnr_req() argument
125 seq_print_one_request(m, req, now); in seq_print_minor_vnr_req()
128 …int_resource_pending_meta_io(struct seq_file *m, struct drbd_resource *resource, unsigned long now) in seq_print_resource_pending_meta_io() argument
[all …]
/OK3568_Linux_fs/u-boot/board/armltd/integrator/
H A Dtimer.c124 unsigned long long now = READ_TIMER; in get_timer_masked() local
126 if(now > lastdec) { in get_timer_masked()
128 total_count += lastdec + TIMER_LOAD_VAL + 1 - now; in get_timer_masked()
130 total_count += lastdec - now; in get_timer_masked()
132 lastdec = now; in get_timer_masked()
135 now = total_count; in get_timer_masked()
136 do_div(now, div_timer); in get_timer_masked()
137 timestamp = now; in get_timer_masked()
/OK3568_Linux_fs/buildroot/dl/qt5location/git/dist/
H A Dchanges-5.9.045 - Map.zoomLevel now always refers to a normalized tile size of 256x256 pixels.
50 - QGeoProjectionWebMercator now uses a projection matrix to project to item position.
55 - QDeclarativeGeoMap::setVisibleRegion now handles QGeoPath as well.
56 - Map Items geo data is now managed by a contained QGeoShape, which also handles geographical
60 - QQuickGeoMapGestureArea now correctly works with tilted/rotated maps.
63 …- Added a new QML type, MapCopyrightNotice, backed by the now exposed QDeclarativeGeoMapCopyrightN…
64 - MapCopyrightNotice can now be styled using CSS.
66 - The MapboxGL plugin now ships with a built-in development token.
71 - QGeoTiledMap now uses anisotropic filtering when available.
72 - Unblacklisted some previously blacklisted autotests now fixed in qtdeclarative.
[all …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/timers/
H A Dnanosleep.c103 struct timespec now, target, rel; in nanosleep_test() local
106 if (clock_gettime(clockid, &now)) in nanosleep_test()
108 target = timespec_add(now, ns); in nanosleep_test()
112 clock_gettime(clockid, &now); in nanosleep_test()
114 if (!in_order(target, now)) in nanosleep_test()
118 clock_gettime(clockid, &now); in nanosleep_test()
122 target = timespec_add(now, ns); in nanosleep_test()
124 clock_gettime(clockid, &now); in nanosleep_test()
126 if (!in_order(target, now)) in nanosleep_test()
/OK3568_Linux_fs/kernel/arch/x86/events/
H A Dmsr.c219 u64 now; in msr_read_counter() local
222 rdmsrl(event->hw.event_base, now); in msr_read_counter()
224 now = rdtsc_ordered(); in msr_read_counter()
226 return now; in msr_read_counter()
231 u64 prev, now; in msr_event_update() local
237 now = msr_read_counter(event); in msr_event_update()
239 if (local64_cmpxchg(&event->hw.prev_count, prev, now) != prev) in msr_event_update()
242 delta = now - prev; in msr_event_update()
248 now = now & (1ULL << 31) ? (now >> 16) & 0x3f : -1; in msr_event_update()
249 local64_set(&event->count, now); in msr_event_update()
[all …]

12345678910>>...100