[BACK]Return to kern_tc.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / kern

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/kern/kern_tc.c between version 1.49.4.1 and 1.49.4.2

version 1.49.4.1, 2019/06/10 22:09:03 version 1.49.4.2, 2020/04/08 14:08:51
Line 519  getmicrotime(struct timeval *tvp)
Line 519  getmicrotime(struct timeval *tvp)
         } while (gen == 0 || gen != th->th_generation);          } while (gen == 0 || gen != th->th_generation);
 }  }
   
   void
   getnanoboottime(struct timespec *tsp)
   {
           struct bintime bt;
   
           getbinboottime(&bt);
           bintime2timespec(&bt, tsp);
   }
   
   void
   getmicroboottime(struct timeval *tvp)
   {
           struct bintime bt;
   
           getbinboottime(&bt);
           bintime2timeval(&bt, tvp);
   }
   
   void
   getbinboottime(struct bintime *bt)
   {
   
           /*
            * XXX Need lockless read synchronization around timebasebin
            * (and not just here).
            */
           *bt = timebasebin;
   }
   
 /*  /*
  * Initialize a new timecounter and possibly use it.   * Initialize a new timecounter and possibly use it.
  */   */
Line 1331  inittimecounter(void)
Line 1360  inittimecounter(void)
          * Set the initial timeout to           * Set the initial timeout to
          * max(1, <approx. number of hardclock ticks in a millisecond>).           * max(1, <approx. number of hardclock ticks in a millisecond>).
          * People should probably not use the sysctl to set the timeout           * People should probably not use the sysctl to set the timeout
          * to smaller than its inital value, since that value is the           * to smaller than its initial value, since that value is the
          * smallest reasonable one.  If they want better timestamps they           * smallest reasonable one.  If they want better timestamps they
          * should use the non-"get"* functions.           * should use the non-"get"* functions.
          */           */

Legend:
Removed from v.1.49.4.1  
changed lines
  Added in v.1.49.4.2

CVSweb <webmaster@jp.NetBSD.org>