Searched defs:now (Results 1 - 25 of 39) sorted by relevance

12

/arch/avr32/lib/
H A Ddelay.c31 unsigned bclock, now; local
35 now = sysreg_read(COUNT);
36 } while ((now - bclock) < loops);
/arch/mips/kernel/
H A Dtime.c47 int update_persistent_clock(struct timespec now) argument
49 return rtc_mips_set_mmss(now.tv_sec);
79 * initializes an interrupt timer now takes care of its own request_irq rsp.
/arch/mn10300/kernel/
H A Drtc.c112 int update_persistent_clock(struct timespec now) argument
114 return set_rtc_mmss(now.tv_sec);
/arch/m68k/platform/68328/
H A Dtimers.c125 long now = RTCTIME; local
127 t->tm_hour = (now >> 24) % 24;
128 t->tm_min = (now >> 16) % 60;
129 t->tm_sec = now % 60;
/arch/sh/kernel/
H A Dtime.c47 int update_persistent_clock(struct timespec now) argument
49 return rtc_sh_set_time(now.tv_sec);
/arch/x86/kernel/
H A Dtsc_sync.c47 cycles_t start, now, prev, end; local
57 now = start;
68 now = get_cycles();
70 last_tsc = now;
74 * Be nice every now and then (and also check whether
80 if (now > end || i > 10000000)
86 * Outside the critical section we can now see whether
89 if (unlikely(prev > now)) {
91 max_warp = max(max_warp, prev - now);
96 WARN(!(now
[all...]
H A Dpvclock.c140 struct timespec now; local
146 now.tv_sec = wall_clock->sec;
147 now.tv_nsec = wall_clock->nsec;
152 delta += now.tv_sec * (u64)NSEC_PER_SEC + now.tv_nsec;
154 now.tv_nsec = do_div(delta, NSEC_PER_SEC);
155 now.tv_sec = delta;
157 set_normalized_timespec(ts, now.tv_sec, now.tv_nsec);
H A Dkvmclock.c67 static int kvm_set_wallclock(unsigned long now) argument
H A Drtc.c182 int update_persistent_clock(struct timespec now) argument
184 return x86_platform.set_wallclock(now.tv_sec);
H A Dapb_timer.c272 u64 start, now; local
290 rdtscll(now);
291 } while ((now - start) < 200000UL);
/arch/x86/lib/
H A Ddelay.c53 u32 bclock, now, loops = __loops; local
62 rdtscl(now);
63 if ((now - bclock) >= loops)
81 loops -= (now - bclock);
/arch/cris/kernel/
H A Dtime.c128 int update_persistent_clock(struct timespec now) argument
130 return set_rtc_mmss(now.tv_sec);
/arch/parisc/kernel/
H A Dtime.c60 unsigned long now, now2; local
76 now = mfctl(16);
78 cycles_elapsed = now - next_tick;
102 next_tick = now + cycles_remainder;
117 * "next_tick - now" will always give the difference regardless
118 * if one or the other wrapped. If "now" is "bigger" we'll end up
129 if (unlikely(now2 - now > 0x3000)) /* 12K cycles */
132 " next/now %lX/%lX\n",
133 cpu, now2 - now, cycles_elapsed, cycles_remainder,
134 next_tick, now );
[all...]
/arch/ia64/xen/
H A Dtime.c188 unsigned long long now; local
203 now = ia64_native_sched_clock();
210 if (now > runstate.state_entry_time)
211 offset = now - runstate.state_entry_time;
/arch/s390/kvm/
H A Dinterrupt.c363 u64 now, sltime; local
387 now = get_clock() + vcpu->arch.sie_block->epoch;
388 if (vcpu->arch.sie_block->ckc < now) {
393 sltime = ((vcpu->arch.sie_block->ckc - now)*125)>>9;
/arch/sparc/kernel/
H A Dtime_32.c80 int update_persistent_clock(struct timespec now) argument
82 return set_rtc_mmss(now.tv_sec);
/arch/arm/mach-prima2/
H A Dtimer.c89 unsigned long now, next; local
92 now = readl_relaxed(sirfsoc_timer_base + SIRFSOC_TIMER_LATCHED_LO);
93 next = now + delta;
96 now = readl_relaxed(sirfsoc_timer_base + SIRFSOC_TIMER_LATCHED_LO);
98 return next - now > delta ? -ETIME : 0;
/arch/powerpc/platforms/powermac/
H A Dtime.c87 static void to_rtc_time(unsigned long now, struct rtc_time *tm) argument
89 to_tm(now, tm);
108 unsigned int now; local
117 now = (req.reply[3] << 24) + (req.reply[4] << 16)
119 return ((unsigned long)now) - RTC_OFFSET;
152 unsigned int now; local
160 now = (req.reply[0] << 24) + (req.reply[1] << 16)
162 return ((unsigned long)now) - RTC_OFFSET;
/arch/s390/kernel/
H A Dvtime.c164 unsigned long long now, idle_enter, idle_exit; local
168 now = get_clock();
173 return idle_enter ? ((idle_exit ? : now) - idle_enter) : 0;
/arch/x86/kernel/cpu/mcheck/
H A Dtherm_throt.c143 u64 now; local
146 now = get_jiffies_64();
170 if (time_before64(now, state->next_check) &&
174 state->next_check = now + CHECK_INTERVAL;
211 u64 now = get_jiffies_64(); local
215 if (time_before64(now, state->next_check))
218 state->next_check = now + CHECK_INTERVAL;
/arch/alpha/kernel/
H A Dtime.c23 * from processor cycle counter (now taking lost_ticks into account)
113 int update_persistent_clock(struct timespec now) argument
115 return set_rtc_mmss(now.tv_sec);
167 __u32 now; local
180 now = rpcc();
181 delta = now - state.last_time;
182 state.last_time = now;
/arch/ia64/kernel/
H A Dtime.c96 __u64 now; local
98 now = ia64_get_itc();
100 delta_stime = cycle_to_cputime(pi->ac_stime + (now - pi->ac_stamp));
111 pi->ac_stamp = ni->ac_stamp = now;
124 __u64 now; local
128 now = ia64_get_itc();
130 delta_stime = cycle_to_cputime(ti->ac_stime + (now - ti->ac_stamp));
137 ti->ac_stamp = now;
371 unsigned long lcycle, now, ret; local
377 now
[all...]
/arch/m68k/mac/
H A Dmisc.c526 printk("It is now safe to turn off your Macintosh.\n");
697 unsigned long now; local
703 now = via_read_time();
706 now = maciisi_read_time();
710 now = pmu_read_time();
713 now = cuda_read_time();
716 now = 0;
720 unmktime(now, 0,
735 now = mktime(t->tm_year + 1900, t->tm_mon + 1, t->tm_mday,
741 via_write_time(now);
763 struct rtc_time now; local
[all...]
/arch/powerpc/kernel/
H A Dirq.c116 u64 now = get_tb_or_rtc(); local
119 if (now >= *next_tb)
121 return now >= *next_tb;
227 * common cases that we'll ignore for now), so we skip the
254 /* We can soft-enable now */
314 * we return now and do not enter the low power state.
505 /* We can hard enable interrupts now */
/arch/powerpc/platforms/powernv/
H A Dpci.c245 /* For now, let's only display the diag buffer when we fail to clear
536 u64 now, target; local
548 now = mftb() / tb_ticks_per_usec;
552 pr_devel("pci %04d: Reset target: 0x%llx now: 0x%llx\n",
553 hose->global_number, target, now);
555 if (now < target)
556 msleep((target - now + 999) / 1000);

Completed in 504 milliseconds

12