Subversion Repositories HelenOS-historic

Rev

Rev 1441 | Rev 1449 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1441 Rev 1442
Line 78... Line 78...
78
    if (tz) {
78
    if (tz) {
79
        tz->tz_minuteswest = 0;
79
        tz->tz_minuteswest = 0;
80
        tz->tz_dsttime = DST_NONE;
80
        tz->tz_dsttime = DST_NONE;
81
    }
81
    }
82
 
82
 
83
    s1 = ktime->seconds1;
83
    s2 = ktime->seconds2;
-
 
84
    read_barrier();
84
    tv->tv_usec = ktime->useconds;
85
    tv->tv_usec = ktime->useconds;
85
    read_barrier();
86
    read_barrier();
86
    s2 = ktime->seconds2;
87
    s1 = ktime->seconds1;
87
    if (s1 != s2) {
88
    if (s1 != s2) {
88
        tv->tv_usec = 0;
89
        tv->tv_usec = 0;
89
        tv->tv_sec = s1 > s2 ? s1 : s2;
90
        tv->tv_sec = s1 > s2 ? s1 : s2;
90
    } else
91
    } else
91
        tv->tv_sec = s1;
92
        tv->tv_sec = s1;