Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755899AbZJZLjj (ORCPT ); Mon, 26 Oct 2009 07:39:39 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755798AbZJZLji (ORCPT ); Mon, 26 Oct 2009 07:39:38 -0400 Received: from hera.kernel.org ([140.211.167.34]:57314 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755778AbZJZLjh (ORCPT ); Mon, 26 Oct 2009 07:39:37 -0400 Date: Mon, 26 Oct 2009 11:38:29 GMT From: tip-bot for Michael Cree Cc: linux-kernel@vger.kernel.org, paulus@samba.org, hpa@zytor.com, mingo@redhat.com, a.p.zijlstra@chello.nl, ink@jurassic.park.msu.ru, tglx@linutronix.de, rth@twiddle.net, mingo@elte.hu, mcree@orcon.net.nz Reply-To: mingo@redhat.com, hpa@zytor.com, paulus@samba.org, linux-kernel@vger.kernel.org, a.p.zijlstra@chello.nl, ink@jurassic.park.msu.ru, tglx@linutronix.de, rth@twiddle.net, mingo@elte.hu, mcree@orcon.net.nz In-Reply-To: <1256545926-6972-1-git-send-email-mcree@orcon.net.nz> References: <1256545926-6972-1-git-send-email-mcree@orcon.net.nz> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf tools, Alpha: Add Alpha support to perf.h Message-ID: Git-Commit-ID: fcd14b3203b538dca04a2b065c774c0b57863eec X-Mailer: tip-git-log-daemon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1560 Lines: 45 Commit-ID: fcd14b3203b538dca04a2b065c774c0b57863eec Gitweb: http://git.kernel.org/tip/fcd14b3203b538dca04a2b065c774c0b57863eec Author: Michael Cree AuthorDate: Mon, 26 Oct 2009 21:32:06 +1300 Committer: Ingo Molnar CommitDate: Mon, 26 Oct 2009 09:45:41 +0100 perf tools, Alpha: Add Alpha support to perf.h For the perf tool the patch implements an Alpha specific section in the perf.h header file. Signed-off-by: Michael Cree Cc: Richard Henderson Cc: Ivan Kokshaysky Cc: Peter Zijlstra Cc: Paul Mackerras LKML-Reference: <1256545926-6972-1-git-send-email-mcree@orcon.net.nz> Signed-off-by: Ingo Molnar --- tools/perf/perf.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/tools/perf/perf.h b/tools/perf/perf.h index 8cc4623..216bdb2 100644 --- a/tools/perf/perf.h +++ b/tools/perf/perf.h @@ -47,6 +47,12 @@ #define cpu_relax() asm volatile("":::"memory") #endif +#ifdef __alpha__ +#include "../../arch/alpha/include/asm/unistd.h" +#define rmb() asm volatile("mb" ::: "memory") +#define cpu_relax() asm volatile("" ::: "memory") +#endif + #include #include #include -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/