Re: [PATCH] sched.c : correct comment for this_rq_lock() routine

From: Nick Piggin
Date: Tue Oct 31 2006 - 17:46:42 EST


Robert P. J. Day wrote:

example, i was just poking around the source for the various
"atomic.h" files and noticed a couple possible cleanups:

1) make sure *everyone* uses "volatile" in the typedef struct (which
i actually submitted recently)


I don't see why. There is nothing in atomic (eg. atomic_read) that says
there must be a compiler barrier around the operation.

Have you checked that the architecture implementation actually needs the
volatile where you've added it?

--

Send instant messages to your online friends http://au.messenger.yahoo.com -
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/