mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: lepton <ytht.net@gmail.com>
To: lkm@gsy2.lepton.home
Subject: 386/smp issue with atomic_add_return()
Date: Wed, 12 Apr 2006 10:13:40 +0800	[thread overview]
Message-ID: <20060412021340.GA6718@gsy2.lepton.home> (raw)

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

             reply	other threads:[~2006-04-12  2:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-12  2:13 lepton [this message]
2006-04-12  3:04 ` Joshua Hudson

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=20060412021340.GA6718@gsy2.lepton.home \
    --to=ytht.net@gmail.com \
    --cc=lkm@gsy2.lepton.home \
    /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

all inboxes | Powered by JetHome®