netdev
[Top] [All Lists]

Re: MSEC_TO_JIFFIES is messed up...

To: Jan Olderdissen <jan@xxxxxxxxxxx>
Subject: Re: MSEC_TO_JIFFIES is messed up...
From: Andreas Schwab <schwab@xxxxxxx>
Date: Wed, 12 May 2004 22:49:34 +0200
Cc: linux-kernel@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <15FDCE057B48784C80836803AE3598D50627ACD5@racerx.ixiacom.com> (Jan Olderdissen's message of "Wed, 12 May 2004 13:40:18 -0700")
References: <15FDCE057B48784C80836803AE3598D50627ACD5@racerx.ixiacom.com>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)
Jan Olderdissen <jan@xxxxxxxxxxx> writes:

> Couple nitpicks:
>
>> #define      MSEC_TO_JIFFIES(msec) (msec * 10)

#define MSEC_TO_JIFFIES(msec) ((msec) * 10)

>> #define JIFFIES_TO_MESC(jiffies) (jiffies / 10)
>
> #define JIFFIES_TO_MSEC(jiffies) (jiffies / 10)

#define JIFFIES_TO_MSEC(jiffies) ((jiffies) / 10)

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@xxxxxxx
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


<Prev in Thread] Current Thread [Next in Thread>