Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753309Ab2KLLwN (ORCPT ); Mon, 12 Nov 2012 06:52:13 -0500 Received: from us02smtp2.synopsys.com ([198.182.60.77]:51561 "EHLO alvesta.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750888Ab2KLLwJ (ORCPT ); Mon, 12 Nov 2012 06:52:09 -0500 From: To: , CC: , , Vineet Gupta Subject: [RFC Patch v1 49/55] perf, ARC: Enable building perf tools for ARC Date: Mon, 12 Nov 2012 17:19:07 +0530 Message-ID: <1352720953-24321-19-git-send-email-vgupta@synopsys.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1352720953-24321-1-git-send-email-vgupta@synopsys.com> References: <1352720953-24321-1-git-send-email-vgupta@synopsys.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.12.197.205] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 924 Lines: 34 From: Vineet Gupta Although with uClibc there's more we need to do Signed-off-by: Vineet Gupta --- 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 c50985e..1006b17 100644 --- a/tools/perf/perf.h +++ b/tools/perf/perf.h @@ -107,6 +107,12 @@ void get_term_dimensions(struct winsize *ws); #define CPUINFO_PROC "cpu model" #endif +#ifdef __arc__ +#define rmb() asm volatile("" ::: "memory") +#define cpu_relax() rmb() +#define CPUINFO_PROC "Processor" +#endif + #include #include #include -- 1.7.4.1 -- 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/