All of lore.kernel.org
 help / color / mirror / Atom feed
* about runqueues locking
@ 2004-02-27 12:23 Vincent Hanquez
  2004-02-27 13:08 ` Zwane Mwaikambo
  0 siblings, 1 reply; 2+ messages in thread
From: Vincent Hanquez @ 2004-02-27 12:23 UTC (permalink / raw)
  To: lkml

[-- Attachment #1: Type: text/plain, Size: 757 bytes --]

	Hi LKML,

I've got a code for 2.4 which do:

================================================================
spin_lock_irqsave(&runqueue_lock, flags)
for_each_process(p)
{
	// modify p attributes
}
spin_unlock_irqrestore(&runqueue_lock, flags)
================================================================

and I need to translate it to 2.6.
What is exactly the best solution since runqueues are per cpu now ?

Is there a way to lock and browse each runqueues ?
or if not, is tasklist_lock can be use to lock all runqueues at once ?

and one another question, what is the difference between
local_irq_disable() and local_irq_save() ?
irq_save push eflags register on the stack, but why for ?

Thanks for any comments.
-- 
Tab

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-02-27 13:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-27 12:23 about runqueues locking Vincent Hanquez
2004-02-27 13:08 ` Zwane Mwaikambo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.