commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU Mach branch, master, updated. v1.5-72-g3db15a3


From: Justus Winter
Subject: [SCM] GNU Mach branch, master, updated. v1.5-72-g3db15a3
Date: Sat, 25 Jul 2015 20:37:07 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Mach".

The branch, master has been updated
       via  3db15a3f80f193826e144b1944727a65c13340fe (commit)
       via  bb23879791cf015f17cb50b6443bac44b1cfbc72 (commit)
      from  a7fb5a40ab0700477b39bb89d70172b97280d4d1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 3db15a3f80f193826e144b1944727a65c13340fe
Author: Justus Winter <address@hidden>
Date:   Sat Jul 25 18:23:10 2015 +0200

    kern: add boot-time clock, use it for time stamps
    
    The kernel keeps track of task and thread creation times by saving a
    time stamp.  Previously, the real-time clock was used for this.  When
    the real-time clock is changed, however, the reference frame for the
    time stamps is lost.  This surfaced in Hurd systems reporting
    spuriously long uptimes.
    
    Fix this by creating a boot-time clock and use it as reference frame
    for the time stamps.
    
    * kern/mach_clock.c (clock_boottime_offset): Create clock by keeping
    track of the offset from the real-time.
    (clock_boottime_update): New function.
    (record_time_stamp): Use the boot-time clock for time stamps.
    (read_time_stamp): New function to convert it back to real-time.
    (host_set_time): Call `clock_boottime_update'.
    * kern/mach_clock.h (record_time_stamp): Amend comment.
    (read_time_stamp): New declaration.
    * kern/task.c (task_info): Use `read_time_stamp'.
    * kern/thread.c (thread_info): Likewise.

commit bb23879791cf015f17cb50b6443bac44b1cfbc72
Author: Justus Winter <address@hidden>
Date:   Sat Jul 25 20:04:27 2015 +0200

    include: provide time-value substraction
    
    * include/mach/time_value.h (time_value_assert): New macro to assert
    that the given value is well-formed.
    (time_value_add_usec): Use the new macro.
    (time_value_sub_usec): New macro.
    (time_value_add): Use `time_value_add_usec'.
    (time_value_sub_usec): New macro.

-----------------------------------------------------------------------

Summary of changes:
 include/mach/time_value.h |   31 ++++++++++++++++++++++++-------
 kern/mach_clock.c         |   36 +++++++++++++++++++++++++++++++++++-
 kern/mach_clock.h         |   11 ++++++++++-
 kern/task.c               |    3 ++-
 kern/thread.c             |    3 ++-
 5 files changed, 73 insertions(+), 11 deletions(-)


hooks/post-receive
-- 
GNU Mach



reply via email to

[Prev in Thread] Current Thread [Next in Thread]