All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Zijlstra <a.p.zijlstra@chello.nl>
To: William Cohen <wcohen@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>, Ingo Molnar <mingo@elte.hu>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] Add minimal support for software performance counters for ia64
Date: Wed, 19 Aug 2009 18:12:31 +0200	[thread overview]
Message-ID: <1250698351.8282.106.camel@twins> (raw)
In-Reply-To: <4A8C2290.3040707@redhat.com>

On Wed, 2009-08-19 at 12:04 -0400, William Cohen wrote:
> +#ifdef __ia64__
> +#include "../../arch/ia64/include/asm/unistd.h"
> +#define rmb()          asm volatile("" ::: "memory")
> +#define cpu_relax()    asm volatile("" ::: "memory");
> +#endif

Surely the itanic has a real memory barrier? The kernel seems to use
something along the lines of mf.

Also, cpu_relax() seems to end up being asm volatile("hint @pause" :::
"memory"), although we don't seem to have an actual user of cpu_relax()
in perf atm.




  reply	other threads:[~2009-08-19 16:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-19 16:04 [PATCH] Add minimal support for software performance counters for ia64 William Cohen
2009-08-19 16:12 ` Peter Zijlstra [this message]
2009-08-19 19:04   ` William Cohen
2009-08-19 19:06     ` Peter Zijlstra
2009-08-20 21:19       ` William Cohen
2009-08-21 14:25         ` Ingo Molnar
2009-08-21 15:09           ` William Cohen
2009-08-21 16:37             ` [PATCH, V2] perf_counter, IA64: Add support for software performance counters Ingo Molnar
2009-08-19 16:12 ` [PATCH] Add minimal " Ingo Molnar
2009-08-19 16:12   ` [PATCH] Add minimal support for software performance counters for ia64 Ingo Molnar

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=1250698351.8282.106.camel@twins \
    --to=a.p.zijlstra@chello.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=paulus@samba.org \
    --cc=wcohen@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.