mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alan <alan@lxorguk.ukuu.org.uk>
To: Zwane Mwaikambo <zwane@holomorphy.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Ingo Molnar <mingo@elte.hu>, Robert Love <rml@tech9.net>,
	Andrew Morton <akpm@digeo.com>
Subject: Re: [PATCH][2.5] smp_call_function_mask
Date: 20 Jan 2003 23:19:05 +0000	[thread overview]
Message-ID: <1043104744.12609.2.camel@dhcp22.swansea.linux.org.uk> (raw)
In-Reply-To: <Pine.LNX.4.44.0301170014230.24250-100000@montezuma.mastecende.com>

On Fri, 2003-01-17 at 05:18, Zwane Mwaikambo wrote:
> +	/* Wait for response */
> +	while (atomic_read(&data.started) != num_cpus)
> +		barrier();

Only old old intel x86 that does -bad- things as it
generates a lot of bus locked cycles. Better to do

	while(atomic_read(&data.started) != num_cpus)
		while(data.started.value != num_cpus)
		{
			barrier();
			cpu_relax();
		}

I would think ?


  parent reply	other threads:[~2003-01-21  6:06 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-17  5:18 Zwane Mwaikambo
2003-01-17  5:44 ` Andrew Morton
2003-01-17  5:56   ` Zwane Mwaikambo
2003-01-20 23:19 ` Alan [this message]
2003-01-21  7:16   ` Zwane Mwaikambo
2003-01-21  7:13 Manfred Spraul
2003-01-21  8:07 ` Zwane Mwaikambo
2003-01-21  9:21   ` Zwane Mwaikambo
2003-01-21 17:13     ` Manfred Spraul
2003-01-21 17:49       ` Zwane Mwaikambo
2003-01-21 23:14 ` Alan Cox

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=1043104744.12609.2.camel@dhcp22.swansea.linux.org.uk \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=akpm@digeo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=rml@tech9.net \
    --cc=zwane@holomorphy.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

all inboxes | Powered by JetHome®