lkml.org 
[lkml]   [2008]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: bug in jiffy time comparison macros
Date
Hi,

Ralph Campbell <ralph.campbell@qlogic.com> writes:

> It may just be me :-) but this looks like a bug:
> In the current include/linux/jiffies.h:
>
> #define time_before(a,b) time_after(b,a)
>
> Shouldn't this be:
>
> #define time_before(a,b) time_after_eq(b,a)

Then it would be time_before_eq()..?

If a is before b, b must be after a. If they might be equal, than from
both points of view.

Hannes


\
 
 \ /
  Last update: 2008-06-11 04:55    [W:0.025 / U:0.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site