Re: ADI Blackfin patch for kernel 2.6.14
From: Luke Yang
Date: Wed Nov 16 2005 - 01:34:30 EST
On 11/16/05, Paul Jackson <pj@xxxxxxx> 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@xxxxxxx> 1.925.600.0401
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/