Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 225541
Collapse All | Expand All

(-)linux-2.6.18-xen.hg/arch/i386/kernel/time-xen.c (+2 lines)
Lines 140-149 Link Here
140
static inline void __normalize_time(time_t *sec, s64 *nsec)
140
static inline void __normalize_time(time_t *sec, s64 *nsec)
141
{
141
{
142
	while (*nsec >= NSEC_PER_SEC) {
142
	while (*nsec >= NSEC_PER_SEC) {
143
        asm("" : "+r"(*nsec));
143
		(*nsec) -= NSEC_PER_SEC;
144
		(*nsec) -= NSEC_PER_SEC;
144
		(*sec)++;
145
		(*sec)++;
145
	}
146
	}
146
	while (*nsec < 0) {
147
	while (*nsec < 0) {
148
        asm("" : "+r"(*nsec));
147
		(*nsec) += NSEC_PER_SEC;
149
		(*nsec) += NSEC_PER_SEC;
148
		(*sec)--;
150
		(*sec)--;
149
	}
151
	}

Return to bug 225541