lkml.org 
[lkml]   [2004]   [Sep]   [16]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: get_current is __pure__, maybe __const__ even
FromAndi Kleen <>
DateThu, 16 Sep 2004 08:58:22 +0200
Albert Cahalan <albert@users.sf.net> writes:

> Andi Kleen writes:>>> Please CSE "current" manually. It generates
>> much better code on some architectures
>> because the compiler cannot do it for you.>> This looks fixable.

I tried it some years ago, but I ran into problems with the scheduler
and some other code and dropped it.

One problem is that gcc doesn't have a "drop all const/pure
cache values" barrier. Without this I don't think it can be 
safely implemented.

-Andi

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

\
 
 \ /
  Last update: 2005-03-22 13:06    [from the cache]
©2003-2008