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
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
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
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
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
]
[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
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
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
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
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
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
ECTED]>
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
X-Mailer: VM 6
12 matches
Mail list logo