lkml.org 
[lkml]   [2000]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: __bad_udelay in 2.2.18pre15
On Wed, Oct 11, 2000 at 12:13:48PM +0200, Benjamin Herrenschmidt wrote:

> >Well, at first, I wanted to implement it the same way on PPC. However, it
> >dies on all occurences where udelay is called with a non-constant expression.
> >
> >I spotted this case in a few PPC specific stuffs (fixable), but also in
> >the sys_nanosleep code, and in the de4x5 driver.
>
> Hrm... looks like I missed the story about the __builtin_constant_p(). Is
> this a gcc-specific built-in feature ?

Like all __builtin_* functions. It returns 1 if the compiler is able to
figure out that the argument is a constant expression, 0 otherwise. See
include/asm-i386/io.h for particular beautyfull examples ...

Ralf
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:39    [W:0.434 / U:0.344 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site