Re: 2.6.11-rc1-mm1

2005-01-16 Thread Robert Wisniewski
concerns/questions. -bob Robert Wisniewski The K42 MP OS Project http://www.research.ibm.com/K42/ [EMAIL PROTECTED] You mean that it would impact on interrupt deliver? This code's behavior has actually been carefully studied, and what has been seen is that there code almost never loops

Re: 2.6.11-rc1-mm1

2005-01-16 Thread Robert Wisniewski
as spinlocks. Karim -- Author, Speaker, Developer, Consultant Pushing Embedded and Real-Time Linux Systems Beyond the Limits http://www.opersys.com || [EMAIL PROTECTED] || 1-866-677-4546 Robert Wisniewski The K42 MP OS Project http://www.research.ibm.com/K42/ [EMAIL PROTECTED] - To unsubscribe

Re: 2.6.11-rc1-mm1

2005-01-16 Thread Robert Wisniewski
Andrew Morton writes: Robert Wisniewski [EMAIL PROTECTED] wrote: modify_val_spin() { acquire_spin_lock() // calculate some_value based on global_val // for example c=global_val; if (c%0) some_value=10; else some_value=20; global_val = global_val + some_value

Re: 2.6.11-rc1-mm1

2005-01-16 Thread Robert Wisniewski
Christoph Hellwig writes: On Sun, Jan 16, 2005 at 03:11:00PM -0500, Robert Wisniewski wrote: int global_val; modify_val_spin() { acquire_spin_lock() // calculate some_value based on global_val // for example c=global_val; if (c%0) some_value=10; else some_value=20

Re: 2.6.11-rc1-mm1

2005-01-17 Thread Robert Wisniewski
Arjan van de Ven writes: On Sun, 2005-01-16 at 16:06 -0500, Robert Wisniewski wrote: :-) - as above. Furthermore, it seems that reducing the places where interrupts are disabled would be a good thing? depends at the price. On several cpus, disabling interupts is hundreds

Re: 2.6.11-rc1-mm1

2005-01-17 Thread Robert Wisniewski
] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] X-Mailer: VM 6.43 under 20.4 Emerald XEmacs Lucid Message-ID: [EMAIL PROTECTED] From: Robert Wisniewski [EMAIL PROTECTED] Bcc: [EMAIL PROTECTED],[EMAIL

Re: 2.6.11-rc1-mm1

2005-01-16 Thread Robert Wisniewski
obbered the registers) is to make sure the compiler knows the index value needs to get reloaded from memory each time around the loop. Hope this helps. I'm certainly happy to discuss in more length if there's any concerns/questions. -bob Robert Wisniewski The K42 MP OS Project http://www.research.ibm.com

Re: 2.6.11-rc1-mm1

2005-01-16 Thread Robert Wisniewski
primitive regardless of your current state, > it's not the same as spinlocks. > > Karim > -- > Author, Speaker, Developer, Consultant > Pushing Embedded and Real-Time Linux Systems Beyond the Limits > http://www.opersys.com || [EMAIL PROTECTED] || 1-866-677-4546 Robert

Re: 2.6.11-rc1-mm1

2005-01-16 Thread Robert Wisniewski
Andrew Morton writes: > Robert Wisniewski <[EMAIL PROTECTED]> wrote: > > > > modify_val_spin() > > { > >acquire_spin_lock() > >// calculate some_value based on global_val > >// for example c=global_val; if (c%0) some_value=10; else s

Re: 2.6.11-rc1-mm1

2005-01-16 Thread Robert Wisniewski
Christoph Hellwig writes: > On Sun, Jan 16, 2005 at 03:11:00PM -0500, Robert Wisniewski wrote: > > int global_val; > > > > modify_val_spin() > > { > >acquire_spin_lock() > >// calculate some_value based on global_val > >// for examp

Re: 2.6.11-rc1-mm1

2005-01-17 Thread Robert Wisniewski
Arjan van de Ven writes: > On Sun, 2005-01-16 at 16:06 -0500, Robert Wisniewski wrote: > > > :-) - as above. Furthermore, it seems that reducing the places where > > interrupts are disabled would be a good thing? > > depends at the price. On several cpus, disabli

Re: 2.6.11-rc1-mm1

2005-01-17 Thread Robert Wisniewski
ECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> X-Mailer: VM 6