Re: [PATCH 1/24] make atomic_read() behave consistently on alpha

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Chris Snook
Date: Thursday, August 9, 2007 - 8:24 am

Paul E. McKenney wrote:

That looks like a volatile lvalue to me.  I confess I didn't exactly ace 
compilers.  Care to explain this?


We can't have split stores because we don't use atomic64_t on 32-bit 
architectures.  volatile won't save you from pushing stores out of loops unless 
you're also doing reads.  This is why we use reads to flush writes to mmio 
registers.  In this case, an atomic_read() with volatile in it will suffice. 
Storing twice is perfectly legal here, though it's unlikely that an optimizing 
compiler smart enough to create the problem we're addressing would ever do that.

	-- Chris
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/24] make atomic_read() behave consistently on ..., Chris Snook, (Thu Aug 9, 8:24 am)
Re: [PATCH 1/24] make atomic_read() behave consistently on ..., Segher Boessenkool, (Thu Aug 9, 8:50 am)
Re: [PATCH 1/24] make atomic_read() behave consistently on ..., Segher Boessenkool, (Thu Aug 9, 11:38 am)
Re: [PATCH 1/24] make atomic_read() behave consistently on ..., Segher Boessenkool, (Thu Aug 9, 11:51 am)
Re: [PATCH 1/24] make atomic_read() behave consistently on ..., Segher Boessenkool, (Thu Aug 9, 12:17 pm)
Re: [PATCH 1/24] make atomic_read() behave consistently on ..., Segher Boessenkool, (Thu Aug 9, 12:19 pm)
Re: [PATCH 1/24] make atomic_read() behave consistently on ..., Geert Uytterhoeven, (Thu Aug 9, 12:25 pm)
Re: [PATCH 1/24] make atomic_read() behave consistently on ..., Segher Boessenkool, (Thu Aug 9, 4:02 pm)
Re: [PATCH 1/24] make atomic_read() behave consistently on ..., Segher Boessenkool, (Fri Aug 10, 1:07 pm)
Re: [PATCH 1/24] make atomic_read() behave consistently on ..., Segher Boessenkool, (Fri Aug 10, 5:38 pm)
Re: [PATCH 1/24] make atomic_read() behave consistently on ..., Segher Boessenkool, (Fri Aug 10, 5:50 pm)