Re: [PATCH 4/5] kgdb: Use atomic operators which use barriers

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linus Torvalds
Date: Friday, April 2, 2010 - 12:46 pm

On Fri, 2 Apr 2010, Linus Torvalds wrote:

Put another way: from a kernel standpoint, cpu_relax() in _no_ way implies 
a memory barrier. That has always been true, and that continues to be 
true.

But Linux does expect that if some other CPU modifies a memory location, 
then we _will_ see that modification eventually. If the CPU needs help to 
do so, then cpu_relax() needs to do that. Again - this has nothing to do 
with memory barriers. It's just a basic requirement.

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

Messages in current thread:
Re: [PATCH 4/5] kgdb: Use atomic operators which use barriers, Linus Torvalds, (Fri Apr 2, 12:46 pm)
Re: [PATCH 4/5] kgdb: Use atomic operators which use barriers, Russell King - ARM Linux, (Fri Apr 2, 3:25 pm)
Re: [PATCH 4/5] kgdb: Use atomic operators which use barriers, Russell King - ARM Linux, (Sat Apr 3, 9:08 am)