On 11/16/05, Paul Jackson <[email protected]> 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 <[email protected]> 1.925.600.0401
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]