lkml.org 
[lkml]   [2005]   [Nov]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: ADI Blackfin patch for kernel 2.6.14
On 11/16/05, Paul Jackson <pj@sgi.com> wrote:
> Luke wrote:
> > > Cow. You know that volatile in-kernel is basically always wrong?
> > >
> > I really don't know that... Could you refer me to any document or
> > posts talking about it? thank you!
>
> Start with:
>
> http://lkml.org/lkml/2004/1/6/139
>
> > Date Tue, 6 Jan 2004 10:02:18 -0800 (PST)
> > From Linus Torvalds <>
> > Subject Re: [PATCH] fix get_jiffies_64 to work on voyager
> >
> > [ This is a big rant against using "volatile" on data structures. Feel
> > free to ignore it, but the fact is, I'm right. You should never EVER use
> > "volatile" on a data structure. ]

Well, as this post pointed out, some "volatile" are fine.
Especially when you want to visit hardware registers... On the
embedded platforms like Blackfin, ARM, there must be many "volatile"
in the code.

And we will avoid using "volatile" out of the reasonable range.

>
> --
> I won't rest till it's the best ...
> Programmer, Linux Scalability
> Paul Jackson <pj@sgi.com> 1.925.600.0401
>
-
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-11-16 07:37    [W:0.100 / U:0.920 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site