[BACK]Return to kern_time.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_time.c between version 1.141.2.2 and 1.141.2.3

version 1.141.2.2, 2008/11/01 21:22:27 version 1.141.2.3, 2008/11/27 21:34:08
Line 460  sys___adjtime50(struct lwp *l, const str
Line 460  sys___adjtime50(struct lwp *l, const str
 void  void
 adjtime1(const struct timeval *delta, struct timeval *olddelta, struct proc *p)  adjtime1(const struct timeval *delta, struct timeval *olddelta, struct proc *p)
 {  {
         struct timeval atv;  
   
         extern int64_t time_adjtime;  /* in kern_ntptime.c */          extern int64_t time_adjtime;  /* in kern_ntptime.c */
   
         if (olddelta) {          if (olddelta) {
Line 476  adjtime1(const struct timeval *delta, st
Line 474  adjtime1(const struct timeval *delta, st
   
         if (delta) {          if (delta) {
                 mutex_spin_enter(&timecounter_lock);                  mutex_spin_enter(&timecounter_lock);
                 time_adjtime = (int64_t)delta->tv_sec * 1000000 + atv.tv_usec;                  time_adjtime = (int64_t)delta->tv_sec * 1000000 + delta->tv_usec;
   
                 if (time_adjtime) {                  if (time_adjtime) {
                         /* We need to save the system time during shutdown */                          /* We need to save the system time during shutdown */

Legend:
Removed from v.1.141.2.2  
changed lines
  Added in v.1.141.2.3

CVSweb <webmaster@jp.NetBSD.org>