/arch/x86/kernel/ |
D | tsc_sync.c | 47 cycles_t start, now, prev, end; in check_tsc_warp() local 57 now = start; in check_tsc_warp() 68 now = get_cycles(); in check_tsc_warp() 70 last_tsc = now; in check_tsc_warp() 80 if (now > end || i > 10000000) in check_tsc_warp() 89 if (unlikely(prev > now)) { in check_tsc_warp() 91 max_warp = max(max_warp, prev - now); in check_tsc_warp() 96 WARN(!(now-start), in check_tsc_warp() 98 now-start, end-start); in check_tsc_warp()
|
D | pvclock.c | 140 struct timespec now; in pvclock_read_wallclock() local 146 now.tv_sec = wall_clock->sec; in pvclock_read_wallclock() 147 now.tv_nsec = wall_clock->nsec; in pvclock_read_wallclock() 152 delta += now.tv_sec * (u64)NSEC_PER_SEC + now.tv_nsec; in pvclock_read_wallclock() 154 now.tv_nsec = do_div(delta, NSEC_PER_SEC); in pvclock_read_wallclock() 155 now.tv_sec = delta; in pvclock_read_wallclock() 157 set_normalized_timespec(ts, now.tv_sec, now.tv_nsec); in pvclock_read_wallclock()
|
D | apb_timer.c | 272 u64 start, now; in apbt_clocksource_register() local 290 rdtscll(now); in apbt_clocksource_register() 291 } while ((now - start) < 200000UL); in apbt_clocksource_register()
|
/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/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/x86/lib/ |
D | delay.c | 53 u32 bclock, now, loops = __loops; in delay_tsc() local 62 rdtscl(now); in delay_tsc() 63 if ((now - bclock) >= loops) in delay_tsc() 81 loops -= (now - bclock); in delay_tsc()
|
/arch/m68k/platform/68328/ |
D | timers.c | 125 long now = RTCTIME; in m68328_hwclk() local 127 t->tm_hour = (now >> 24) % 24; in m68328_hwclk() 128 t->tm_min = (now >> 16) % 60; in m68328_hwclk() 129 t->tm_sec = now % 60; in m68328_hwclk()
|
/arch/ia64/kernel/ |
D | time.c | 96 __u64 now; in ia64_account_on_switch() local 98 now = ia64_get_itc(); in ia64_account_on_switch() 100 delta_stime = cycle_to_cputime(pi->ac_stime + (now - pi->ac_stamp)); in ia64_account_on_switch() 111 pi->ac_stamp = ni->ac_stamp = now; in ia64_account_on_switch() 124 __u64 now; in account_system_vtime() local 128 now = ia64_get_itc(); in account_system_vtime() 130 delta_stime = cycle_to_cputime(ti->ac_stime + (now - ti->ac_stamp)); in account_system_vtime() 137 ti->ac_stamp = now; in account_system_vtime() 371 unsigned long lcycle, now, ret; in itc_get_cycles() local 377 now = get_cycles(); in itc_get_cycles() [all …]
|
/arch/m68k/mac/ |
D | misc.c | 697 unsigned long now; in mac_hwclk() local 703 now = via_read_time(); in mac_hwclk() 706 now = maciisi_read_time(); in mac_hwclk() 710 now = pmu_read_time(); in mac_hwclk() 713 now = cuda_read_time(); in mac_hwclk() 716 now = 0; in mac_hwclk() 720 unmktime(now, 0, in mac_hwclk() 735 now = mktime(t->tm_year + 1900, t->tm_mon + 1, t->tm_mday, in mac_hwclk() 741 via_write_time(now); in mac_hwclk() 744 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/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/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/powerpc/kernel/ |
D | time.c | 295 u64 now, nowscaled, delta, deltascaled; in account_system_vtime() local 300 now = mftb(); in account_system_vtime() 301 nowscaled = read_spurr(now); in account_system_vtime() 302 get_paca()->system_time += now - get_paca()->starttime; in account_system_vtime() 303 get_paca()->starttime = now; in account_system_vtime() 307 stolen = calculate_stolen_time(now); in account_system_vtime() 477 u64 now; in timer_interrupt() local 512 now = get_tb_or_rtc(); in timer_interrupt() 513 if (now >= *next_tb) { in timer_interrupt() 518 now = *next_tb - now; in timer_interrupt() [all …]
|
/arch/arm/mach-prima2/ |
D | timer.c | 89 unsigned long now, next; in sirfsoc_timer_set_next_event() local 92 now = readl_relaxed(sirfsoc_timer_base + SIRFSOC_TIMER_LATCHED_LO); in sirfsoc_timer_set_next_event() 93 next = now + delta; in sirfsoc_timer_set_next_event() 96 now = readl_relaxed(sirfsoc_timer_base + SIRFSOC_TIMER_LATCHED_LO); in sirfsoc_timer_set_next_event() 98 return next - now > delta ? -ETIME : 0; in sirfsoc_timer_set_next_event()
|
/arch/ia64/xen/ |
D | time.c | 188 unsigned long long now; in xen_sched_clock() local 203 now = ia64_native_sched_clock(); in xen_sched_clock() 210 if (now > runstate.state_entry_time) in xen_sched_clock() 211 offset = now - runstate.state_entry_time; in xen_sched_clock()
|
/arch/alpha/kernel/ |
D | time.c | 113 int update_persistent_clock(struct timespec now) in update_persistent_clock() argument 115 return set_rtc_mmss(now.tv_sec); in update_persistent_clock() 167 __u32 now; in timer_interrupt() local 180 now = rpcc(); in timer_interrupt() 181 delta = now - state.last_time; in timer_interrupt() 182 state.last_time = now; in timer_interrupt()
|
/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/x86/kernel/cpu/mcheck/ |
D | therm_throt.c | 143 u64 now; in therm_throt_process() local 146 now = get_jiffies_64(); in therm_throt_process() 170 if (time_before64(now, state->next_check) && in therm_throt_process() 174 state->next_check = now + CHECK_INTERVAL; in therm_throt_process() 211 u64 now = get_jiffies_64(); in thresh_event_valid() local 215 if (time_before64(now, state->next_check)) in thresh_event_valid() 218 state->next_check = now + CHECK_INTERVAL; in thresh_event_valid()
|
/arch/arm/lib/ |
D | findbit.S | 33 bne .L_found @ any now set - found zero bit 53 eor r3, r3, #0xff @ now looking for a 1 bit 74 bne .L_found @ any now set - found zero bit 112 bne .L_found @ any now set - found zero bit 129 eor r3, r3, #0xff @ now looking for a 1 bit 146 bne .L_found @ any now set - found zero bit
|
/arch/unicore32/lib/ |
D | findbit.S | 26 bne .L_found @ any now set - found zero bit 45 xor r3, r3, #0xff @ now looking for a 1 bit 64 bne .L_found @ any now set - found zero bit
|
/arch/mn10300/kernel/ |
D | rtc.c | 112 int update_persistent_clock(struct timespec now) in update_persistent_clock() argument 114 return set_rtc_mmss(now.tv_sec); in update_persistent_clock()
|
/arch/cris/kernel/ |
D | time.c | 128 int update_persistent_clock(struct timespec now) in update_persistent_clock() argument 130 return set_rtc_mmss(now.tv_sec); in update_persistent_clock()
|
/arch/xtensa/lib/ |
D | memset.S | 120 # now retest if dst aligned 121 bbci.l a5, 1, .L0 # if now aligned, return to main algorithm 128 j .L0 # dst is now aligned, return to main algorithm
|
/arch/sparc/kernel/ |
D | time_32.c | 80 int update_persistent_clock(struct timespec now) in update_persistent_clock() argument 82 return set_rtc_mmss(now.tv_sec); in update_persistent_clock()
|
/arch/arm/mach-at91/include/mach/ |
D | entry-macro.S | 25 streq \tmp, [\base, #AT91_AIC_EOICR] @ not going to be handled further, then ACK it now.
|