/arch/x86/kernel/ |
D | tsc_sync.c | 46 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()
|
D | pvclock.c | 124 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()
|
D | rtc.c | 41 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/ |
D | delay.c | 33 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/ |
D | time.c | 60 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/ |
D | delay.c | 52 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/ |
D | delay.c | 31 unsigned bclock, now; in __delay() local 35 now = sysreg_read(COUNT); in __delay() 36 } while ((now - bclock) < loops); in __delay()
|
/arch/s390/kernel/ |
D | idle.c | 71 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/ |
D | delay.c | 29 unsigned long bclock, now; in __delay() local 34 rdtimer(now); in __delay() 35 } while ((now-bclock) < loops); in __delay()
|
/arch/x86/platform/intel-mid/ |
D | intel_mid_vrtc.c | 59 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/ |
D | timers.c | 127 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/ |
D | misc.c | 695 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/ |
D | time.c | 87 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/ |
D | intel_mid_vrtc.h | 6 extern void vrtc_get_time(struct timespec *now); 7 extern int vrtc_set_mmss(const struct timespec *now);
|
D | mc146818rtc.h | 98 extern int mach_set_rtc_mmss(const struct timespec *now); 99 extern void mach_get_cmos_time(struct timespec *now);
|
/arch/ia64/kernel/ |
D | time.c | 120 __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/ |
D | qrnnd.S | 27 # 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/ |
D | rtc.c | 229 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/ |
D | time.c | 47 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/ |
D | time.c | 55 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/ |
D | time.c | 183 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/ |
D | trace.h | 245 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/ |
D | time.c | 298 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/ |
D | time.c | 47 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/ |
D | emulate.c | 246 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 …]
|