Changeset bcbbe76 in rtems


Ignore:
Timestamp:
Oct 11, 2017, 11:03:11 AM (22 months ago)
Author:
Konstantin Belousov <kib@…>
Branches:
master
Children:
d8b6f1c
Parents:
5167d0e
git-author:
Konstantin Belousov <kib@…> (10/11/17 11:03:11)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/12/17 05:04:12)
Message:

timecounter: Merge FreeBSD change r324528

The th_bintime, th_microtime and th_nanotime members of the timehand all cache the last system time (uptime + boottime). Only the format differs. Do not re-calculate the bintime and simply use the value used to calculate the microtime and nanotime.

Group all the updates under the relevant comment. Remove obsoleted
XXX part.

Submitted by: Sebastian Huber <sebastian.huber@…>
MFC after: 1 week

Update #3175.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/src/kern_tc.c

    r5167d0e rbcbbe76  
    15971597                        th->th_boottime.sec += bt.sec - t;
    15981598        }
    1599         th->th_bintime = th->th_offset;
    1600         bintime_add(&th->th_bintime, &th->th_boottime);
    16011599        /* Update the UTC timestamps used by the get*() functions. */
    1602         /* XXX shouldn't do this here.  Should force non-`get' versions. */
     1600        th->th_bintime = bt;
    16031601        bintime2timeval(&bt, &th->th_microtime);
    16041602        bintime2timespec(&bt, &th->th_nanotime);
Note: See TracChangeset for help on using the changeset viewer.