[lkml]   [1999]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: New resources - pls, explain :-(
> Linus Torvalds wrote:
> > - writel() - strict ordering
> > - __writel() - only to be used for people who REALLY know that they don't
> > care about ordering.
> As a bonus, it can actually be more efficient for writel() to implement
> ordering instead of explicit barriers in the driver.
> How so? See type aliasing rules...

Store ordering below the compiler level is important. Doing


May well be strictly ordered from the C point of view. What it looks like
to another CPU or on another bus is entirely different to what ANSI says
about the code within program flow.

There are two layers of caches, write buffers on the cpu and the bridges
and also inter cpu cache fill logic all conspiring to anooy you and all below
the C world

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:53    [W:0.030 / U:2.528 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site