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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Pavel Machek
Date: Monday, April 5, 2010 - 2:21 am

Hi!



And this is valid (but ugly and not optimal) kernel code:

 	kernel/sched.c-		while (task_is_waking(p))
 	kernel/sched.c:			asm volatile("" :: "memory");


...

...so I don't think inserting smp_mb() into cpu_relax() and udelay()
and similar can ever fix the problem fully.

Run smp_mb() from periodic interrupt?
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
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, 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)
Re: [PATCH 4/5] kgdb: Use atomic operators which use barriers, Pavel Machek, (Mon Apr 5, 2:21 am)