Home
last modified time | relevance | path

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

1234567

/arch/x86/kernel/
Dtsc_sync.c46 cycles_t start, now, prev, end; in check_tsc_warp() local
56 now = start; in check_tsc_warp()
67 now = get_cycles(); in check_tsc_warp()
69 last_tsc = now; in check_tsc_warp()
79 if (now > end || i > 10000000) in check_tsc_warp()
88 if (unlikely(prev > now)) { in check_tsc_warp()
90 max_warp = max(max_warp, prev - now); in check_tsc_warp()
95 WARN(!(now-start), in check_tsc_warp()
97 now-start, end-start); in check_tsc_warp()
Dpvclock.c124 struct timespec now; in pvclock_read_wallclock() local
130 now.tv_sec = wall_clock->sec; in pvclock_read_wallclock()
131 now.tv_nsec = wall_clock->nsec; in pvclock_read_wallclock()
136 delta += now.tv_sec * (u64)NSEC_PER_SEC + now.tv_nsec; in pvclock_read_wallclock()
138 now.tv_nsec = do_div(delta, NSEC_PER_SEC); in pvclock_read_wallclock()
139 now.tv_sec = delta; in pvclock_read_wallclock()
141 set_normalized_timespec(ts, now.tv_sec, now.tv_nsec); in pvclock_read_wallclock()
Drtc.c41 int mach_set_rtc_mmss(const struct timespec *now) in mach_set_rtc_mmss() argument
43 unsigned long nowtime = now->tv_sec; in mach_set_rtc_mmss()
62 void mach_get_cmos_time(struct timespec *now) in mach_get_cmos_time() argument
111 now->tv_sec = mktime(year, mon, day, hour, min, sec); in mach_get_cmos_time()
112 now->tv_nsec = 0; in mach_get_cmos_time()
138 int update_persistent_clock(struct timespec now) in update_persistent_clock() argument
140 return x86_platform.set_wallclock(&now); in update_persistent_clock()
/arch/parisc/lib/
Ddelay.c33 u32 bclock, now, loops = __loops; in __cr16_delay() local
40 now = mfctl(16); in __cr16_delay()
41 if ((now - bclock) >= loops) in __cr16_delay()
60 loops -= (now - bclock); in __cr16_delay()
/arch/parisc/kernel/
Dtime.c60 unsigned long now, now2; in timer_interrupt() local
76 now = mfctl(16); in timer_interrupt()
78 cycles_elapsed = now - next_tick; in timer_interrupt()
102 next_tick = now + cycles_remainder; in timer_interrupt()
129 if (unlikely(now2 - now > 0x3000)) /* 12K cycles */ in timer_interrupt()
133 cpu, now2 - now, cycles_elapsed, cycles_remainder, in timer_interrupt()
134 next_tick, now ); in timer_interrupt()
154 next_tick, now ); in timer_interrupt()
/arch/x86/lib/
Ddelay.c52 u32 bclock, now, loops = __loops; in delay_tsc() local
61 rdtscl(now); in delay_tsc()
62 if ((now - bclock) >= loops) in delay_tsc()
80 loops -= (now - bclock); in delay_tsc()
/arch/avr32/lib/
Ddelay.c31 unsigned bclock, now; in __delay() local
35 now = sysreg_read(COUNT); in __delay()
36 } while ((now - bclock) < loops); in __delay()
/arch/s390/kernel/
Didle.c71 unsigned long long now, idle_time, idle_enter, idle_exit; in show_idle_time() local
75 now = get_tod_clock(); in show_idle_time()
81 idle_time += idle_enter ? ((idle_exit ? : now) - idle_enter) : 0; in show_idle_time()
89 unsigned long long now, idle_enter, idle_exit; in arch_cpu_idle_time() local
93 now = get_tod_clock(); in arch_cpu_idle_time()
98 return idle_enter ? ((idle_exit ?: now) - idle_enter) : 0; in arch_cpu_idle_time()
/arch/metag/lib/
Ddelay.c29 unsigned long bclock, now; in __delay() local
34 rdtimer(now); in __delay()
35 } while ((now-bclock) < loops); in __delay()
/arch/x86/platform/intel-mid/
Dintel_mid_vrtc.c59 void vrtc_get_time(struct timespec *now) in vrtc_get_time() argument
85 now->tv_sec = mktime(year, mon, mday, hour, min, sec); in vrtc_get_time()
86 now->tv_nsec = 0; in vrtc_get_time()
89 int vrtc_set_mmss(const struct timespec *now) in vrtc_set_mmss() argument
96 rtc_time_to_tm(now->tv_sec, &tm); in vrtc_set_mmss()
113 __FUNCTION__, now->tv_sec); in vrtc_set_mmss()
/arch/m68k/68000/
Dtimers.c127 long now = RTCTIME; in m68328_hwclk() local
129 t->tm_hour = (now >> 24) % 24; in m68328_hwclk()
130 t->tm_min = (now >> 16) % 60; in m68328_hwclk()
131 t->tm_sec = now % 60; in m68328_hwclk()
/arch/m68k/mac/
Dmisc.c695 unsigned long now; in mac_hwclk() local
701 now = via_read_time(); in mac_hwclk()
704 now = maciisi_read_time(); in mac_hwclk()
708 now = pmu_read_time(); in mac_hwclk()
711 now = cuda_read_time(); in mac_hwclk()
714 now = 0; in mac_hwclk()
718 unmktime(now, 0, in mac_hwclk()
733 now = mktime(t->tm_year + 1900, t->tm_mon + 1, t->tm_mday, in mac_hwclk()
739 via_write_time(now); in mac_hwclk()
742 cuda_write_time(now); in mac_hwclk()
[all …]
/arch/powerpc/platforms/powermac/
Dtime.c87 static void to_rtc_time(unsigned long now, struct rtc_time *tm) in to_rtc_time() argument
89 to_tm(now, tm); in to_rtc_time()
108 unsigned int now; in cuda_get_time() local
117 now = (req.reply[3] << 24) + (req.reply[4] << 16) in cuda_get_time()
119 return ((unsigned long)now) - RTC_OFFSET; in cuda_get_time()
152 unsigned int now; in pmu_get_time() local
160 now = (req.reply[0] << 24) + (req.reply[1] << 16) in pmu_get_time()
162 return ((unsigned long)now) - RTC_OFFSET; in pmu_get_time()
/arch/x86/include/asm/
Dintel_mid_vrtc.h6 extern void vrtc_get_time(struct timespec *now);
7 extern int vrtc_set_mmss(const struct timespec *now);
Dmc146818rtc.h98 extern int mach_set_rtc_mmss(const struct timespec *now);
99 extern void mach_get_cmos_time(struct timespec *now);
/arch/ia64/kernel/
Dtime.c120 __u64 now; in vtime_delta() local
124 now = ia64_get_itc(); in vtime_delta()
126 delta_stime = cycle_to_cputime(ti->ac_stime + (now - ti->ac_stamp)); in vtime_delta()
128 ti->ac_stamp = now; in vtime_delta()
357 unsigned long lcycle, now, ret; in itc_get_cycles() local
363 now = get_cycles(); in itc_get_cycles()
364 if (lcycle && time_after(lcycle, now)) in itc_get_cycles()
373 ret = cmpxchg(&itc_jitter_data.itc_lastcycle, lcycle, now); in itc_get_cycles()
377 return now; in itc_get_cycles()
/arch/s390/lib/
Dqrnnd.S27 # now (n >> 2) = (d >> 1) * %r1 + %r0
33 # now (n >> 2) = (d&-2) * %r1 + %r0
41 2: # now (n >> 2) = d * %r1 + %r0
55 # now (n >> 1) = d * %r1 + %r0
60 # now (n >> 1) = d * %r1 + %r0
73 8: # now n = d * %r1 + %r0
/arch/alpha/kernel/
Drtc.c229 unsigned long now; member
275 x->retval = alpha_rtc_set_mmss(NULL, x->now); in do_remote_mmss()
279 remote_set_mmss(struct device *dev, unsigned long now) in remote_set_mmss() argument
283 x.now = now; in remote_set_mmss()
287 return alpha_rtc_set_mmss(NULL, now); in remote_set_mmss()
/arch/mips/kernel/
Dtime.c47 int update_persistent_clock(struct timespec now) in update_persistent_clock() argument
49 return rtc_mips_set_mmss(now.tv_sec); in update_persistent_clock()
/arch/cris/kernel/
Dtime.c55 int update_persistent_clock(struct timespec now) in update_persistent_clock() argument
57 return set_rtc_mmss(now.tv_sec); in update_persistent_clock()
/arch/x86/xen/
Dtime.c183 static void xen_get_wallclock(struct timespec *now) in xen_get_wallclock() argument
185 xen_read_wallclock(now); in xen_get_wallclock()
188 static int xen_set_wallclock(const struct timespec *now) in xen_set_wallclock() argument
200 struct timespec now; in xen_pvclock_gtod_notify() local
202 now = __current_kernel_time(); in xen_pvclock_gtod_notify()
208 if (!was_set && timespec_compare(&now, &next_sync) < 0) in xen_pvclock_gtod_notify()
212 op.u.settime.secs = now.tv_sec; in xen_pvclock_gtod_notify()
213 op.u.settime.nsecs = now.tv_nsec; in xen_pvclock_gtod_notify()
223 next_sync = now; in xen_pvclock_gtod_notify()
/arch/arm/kvm/
Dtrace.h245 TP_PROTO(unsigned long vcpu_pc, bool was, bool now),
246 TP_ARGS(vcpu_pc, was, now),
251 __field( bool, now )
257 __entry->now = now;
262 __entry->now ? "on" : "off")
/arch/powerpc/kernel/
Dtime.c298 u64 now, nowscaled, deltascaled; in vtime_delta() local
303 now = mftb(); in vtime_delta()
304 nowscaled = read_spurr(now); in vtime_delta()
305 get_paca()->system_time += now - get_paca()->starttime; in vtime_delta()
306 get_paca()->starttime = now; in vtime_delta()
310 *stolen = calculate_stolen_time(now); in vtime_delta()
487 u64 now; in __timer_interrupt() local
496 now = get_tb_or_rtc(); in __timer_interrupt()
497 if (now >= *next_tb) { in __timer_interrupt()
503 now = *next_tb - now; in __timer_interrupt()
[all …]
/arch/sh/kernel/
Dtime.c47 int update_persistent_clock(struct timespec now) in update_persistent_clock() argument
49 return rtc_sh_set_time(now.tv_sec); in update_persistent_clock()
/arch/mips/kvm/
Demulate.c246 static uint32_t kvm_mips_ktime_to_count(struct kvm_vcpu *vcpu, ktime_t now) in kvm_mips_ktime_to_count() argument
251 now_ns = ktime_to_ns(now); in kvm_mips_ktime_to_count()
303 static uint32_t kvm_mips_read_count_running(struct kvm_vcpu *vcpu, ktime_t now) in kvm_mips_read_count_running() argument
311 count = vcpu->arch.count_bias + kvm_mips_ktime_to_count(vcpu, now); in kvm_mips_read_count_running()
328 threshold = ktime_add_ns(now, vcpu->arch.count_period / 4); in kvm_mips_read_count_running()
393 ktime_t now; in kvm_mips_freeze_hrtimer() local
397 now = ktime_get(); in kvm_mips_freeze_hrtimer()
400 *count = kvm_mips_read_count_running(vcpu, now); in kvm_mips_freeze_hrtimer()
402 return now; in kvm_mips_freeze_hrtimer()
422 ktime_t now, uint32_t count) in kvm_mips_resume_hrtimer() argument
[all …]

1234567