the original code and
change the 'if' in a 'while'.
In Guillaume's patch,
while (__delta USEC_PER_SEC){ ... }, but I think it should be
while (__delta = USEC_PER_SEC){ ... }. Is it right?
Thank you very much.
--
Shuya MAEDA
-
To unsubscribe from this list: send the line unsubscribe netdev
Thank you for the comment.
I made the patch that used the loop instead of the divide and modulus.
Are there any comments?
David Miller wrote:
From: Shuya MAEDA [EMAIL PROTECTED]
Date: Mon, 19 Jun 2006 14:36:46 +0900
#define PSCHED_TADD2(tv, delta, tv_res) \
({ \
- int __delta = (tv
; \
+ } \
+ (tv).tv_usec += __delta; \
+ if((tv).tv_usec = USEC_PER_SEC) { \
+(tv).tv_sec++; \
+(tv).tv_usec -= USEC_PER_SEC; \
+ } \
})
/* Set/check that time is in the past perfect;
--
Shuya Maeda
-
To unsubscribe from this list