diff options
author | Davide Italiano <davide@FreeBSD.org> | 2014-04-12 23:29:29 +0000 |
---|---|---|
committer | Davide Italiano <davide@FreeBSD.org> | 2014-04-12 23:29:29 +0000 |
commit | 4bc38a5ab0217aee0fd1829e4d46e74db344687d (patch) | |
tree | a2ab041c653cf85add095f21ef79604661eaab3a /sys/kern/kern_clocksource.c | |
parent | 7a79617cc15ccab1d91b9e27b01d54104f71f4e7 (diff) | |
download | src-4bc38a5ab0217aee0fd1829e4d46e74db344687d.tar.gz src-4bc38a5ab0217aee0fd1829e4d46e74db344687d.zip |
Notes
Diffstat (limited to 'sys/kern/kern_clocksource.c')
-rw-r--r-- | sys/kern/kern_clocksource.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/kern/kern_clocksource.c b/sys/kern/kern_clocksource.c index fab311971a36..ae64c616c1f6 100644 --- a/sys/kern/kern_clocksource.c +++ b/sys/kern/kern_clocksource.c @@ -217,13 +217,13 @@ handleevents(sbintime_t now, int fake) } else state->nextprof = state->nextstat; if (now >= state->nextcallopt) { - state->nextcall = state->nextcallopt = INT64_MAX; + state->nextcall = state->nextcallopt = SBT_MAX; callout_process(now); } #ifdef KDTRACE_HOOKS if (fake == 0 && now >= state->nextcyc && cyclic_clock_func != NULL) { - state->nextcyc = INT64_MAX; + state->nextcyc = SBT_MAX; (*cyclic_clock_func)(frame); } #endif @@ -509,7 +509,7 @@ configtimer(int start) state = DPCPU_ID_PTR(cpu, timerstate); state->now = now; if (!smp_started && cpu != CPU_FIRST()) - state->nextevent = INT64_MAX; + state->nextevent = SBT_MAX; else state->nextevent = next; if (periodic) @@ -598,10 +598,10 @@ cpu_initclocks_bsp(void) state = DPCPU_ID_PTR(cpu, timerstate); mtx_init(&state->et_hw_mtx, "et_hw_mtx", NULL, MTX_SPIN); #ifdef KDTRACE_HOOKS - state->nextcyc = INT64_MAX; + state->nextcyc = SBT_MAX; #endif - state->nextcall = INT64_MAX; - state->nextcallopt = INT64_MAX; + state->nextcall = SBT_MAX; + state->nextcallopt = SBT_MAX; } periodic = want_periodic; /* Grab requested timer or the best of present. */ |