From: "Joshua Hudson" <joshudson@gmail.com>
To: lepton <ytht.net@gmail.com>, linux-kernel@vger.kernel.org
Subject: Re: 386/smp issue with atomic_add_return()
Date: Tue, 11 Apr 2006 20:04:36 -0700 [thread overview]
Message-ID: <bda6d13a0604112004s16ee3c7fo210ef2caeebdcd0e@mail.gmail.com> (raw)
In-Reply-To: <20060412021340.GA6718@gsy2.lepton.home>
On 4/11/06, lepton <ytht.net@gmail.com> wrote:
> Hi
> Is there any smp box with 386 cpu?
> If it exist, then I think atomic_add_return has a problem.
> Just disabling local interrupts can not keep another cpu from entering this function.
> What do you think about this?
>
> This is the code (copied from 2.6.16.4):
>
> #ifdef CONFIG_M386
> no_xadd: /* Legacy 386 processor */
> local_irq_disable();
> __i = atomic_read(v);
> atomic_set(v, i + __i);
> local_irq_enable();
> return i + __i;
> #endif
If such a box exists (and I doubt), it is not a commody PC.
First x86 SMP motherboard I heard of was a P1 with two processors.
prev parent reply other threads:[~2006-04-12 3:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-12 2:13 lepton
2006-04-12 3:04 ` Joshua Hudson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bda6d13a0604112004s16ee3c7fo210ef2caeebdcd0e@mail.gmail.com \
--to=joshudson@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ytht.net@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome