Re: [PATCH] Avoid overflows in kernel/time.c (version 3)

2007-12-18 Thread Jan Engelhardt
On Dec 17 2007 15:33, H. Peter Anvin wrote: >> Could this live in scripts/ too? (And use CodingStyle?) > > Why should it live in scripts/ rather than where it is used? scripts/ is used > either for global scripts or scripts which are used manually. Other scripts > are > not centralized there. >

Re: [PATCH] Avoid overflows in kernel/time.c (version 3)

2007-12-17 Thread H. Peter Anvin
Jan Engelhardt wrote: On Dec 17 2007 13:53, H. Peter Anvin wrote: index 000..fd46b3d --- /dev/null +++ b/kernel/timeconst.pl Could this live in scripts/ too? (And use CodingStyle?) Why should it live in scripts/ rather than where it is used? scripts/ is used either for global scripts

Re: [PATCH] Avoid overflows in kernel/time.c (version 3)

2007-12-17 Thread Jan Engelhardt
On Dec 17 2007 13:53, H. Peter Anvin wrote: >index 000..fd46b3d >--- /dev/null >+++ b/kernel/timeconst.pl Could this live in scripts/ too? (And use CodingStyle?) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More ma

[PATCH] Avoid overflows in kernel/time.c (version 3)

2007-12-17 Thread H. Peter Anvin
When the conversion factor between jiffies and milli- or microseconds is not a single multiply or divide, as for the case of HZ == 300, we currently do a multiply followed by a divide. The intervening result, however, is subject to overflows, especially since the fraction is not simplified (for HZ