Home
last modified time | relevance | path

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

123456

/arch/x86/kernel/
Dtsc_sync.c47 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()
Dpvclock.c140 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()
Dapb_timer.c272 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/
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/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/x86/lib/
Ddelay.c53 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/
Dtimers.c125 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/
Dtime.c96 __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/
Dmisc.c697 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/
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/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/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/powerpc/kernel/
Dtime.c295 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/
Dtimer.c89 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/
Dtime.c188 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/
Dtime.c113 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/
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/x86/kernel/cpu/mcheck/
Dtherm_throt.c143 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/
Dfindbit.S33 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/
Dfindbit.S26 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/
Drtc.c112 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/
Dtime.c128 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/
Dmemset.S120 # 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/
Dtime_32.c80 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/
Dentry-macro.S25 streq \tmp, [\base, #AT91_AIC_EOICR] @ not going to be handled further, then ACK it now.

123456