kern_tc.c (8addc72b3e0080c64b53d6c01fc14ad19b46d918) kern_tc.c (70e3b262d1128f0e62d736cfaa7a70cc5080f6aa)
1/*-
2 * ----------------------------------------------------------------------------
3 * "THE BEER-WARE LICENSE" (Revision 42):
4 * <phk@FreeBSD.ORG> wrote this file. As long as you retain this notice you
5 * can do whatever you want with this stuff. If we meet some day, and you think
6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
7 * ----------------------------------------------------------------------------
8 *

--- 1399 unchanged lines hidden (view full) ---

1408 if (i > LARGE_STEP)
1409 i = 2;
1410 for (; i > 0; i--) {
1411 t = bt.sec;
1412 ntp_update_second(&th->th_adjustment, &bt.sec);
1413 if (bt.sec != t)
1414 th->th_boottime.sec += bt.sec - t;
1415 }
1/*-
2 * ----------------------------------------------------------------------------
3 * "THE BEER-WARE LICENSE" (Revision 42):
4 * <phk@FreeBSD.ORG> wrote this file. As long as you retain this notice you
5 * can do whatever you want with this stuff. If we meet some day, and you think
6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
7 * ----------------------------------------------------------------------------
8 *

--- 1399 unchanged lines hidden (view full) ---

1408 if (i > LARGE_STEP)
1409 i = 2;
1410 for (; i > 0; i--) {
1411 t = bt.sec;
1412 ntp_update_second(&th->th_adjustment, &bt.sec);
1413 if (bt.sec != t)
1414 th->th_boottime.sec += bt.sec - t;
1415 }
1416 th->th_bintime = th->th_offset;
1417 bintime_add(&th->th_bintime, &th->th_boottime);
1418 /* Update the UTC timestamps used by the get*() functions. */
1416 /* Update the UTC timestamps used by the get*() functions. */
1419 /* XXX shouldn't do this here. Should force non-`get' versions. */
1417 th->th_bintime = bt;
1420 bintime2timeval(&bt, &th->th_microtime);
1421 bintime2timespec(&bt, &th->th_nanotime);
1422
1423 /* Now is a good time to change timecounters. */
1424 if (th->th_counter != timecounter) {
1425#ifndef __arm__
1426 if ((timecounter->tc_flags & TC_FLAGS_C2STOP) != 0)
1427 cpu_disable_c2_sleep++;

--- 776 unchanged lines hidden ---
1418 bintime2timeval(&bt, &th->th_microtime);
1419 bintime2timespec(&bt, &th->th_nanotime);
1420
1421 /* Now is a good time to change timecounters. */
1422 if (th->th_counter != timecounter) {
1423#ifndef __arm__
1424 if ((timecounter->tc_flags & TC_FLAGS_C2STOP) != 0)
1425 cpu_disable_c2_sleep++;

--- 776 unchanged lines hidden ---