From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932530AbdHVK1q (ORCPT ); Tue, 22 Aug 2017 06:27:46 -0400 Received: from terminus.zytor.com ([65.50.211.136]:57103 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932352AbdHVK1o (ORCPT ); Tue, 22 Aug 2017 06:27:44 -0400 Date: Tue, 22 Aug 2017 03:25:25 -0700 From: tip-bot for Arnaldo Carvalho de Melo Message-ID: Cc: namhyung@kernel.org, dsahern@gmail.com, mingo@kernel.org, wangnan0@huawei.com, jolsa@kernel.org, tglx@linutronix.de, hpa@zytor.com, adrian.hunter@intel.com, linux-kernel@vger.kernel.org, acme@redhat.com, a.p.zijlstra@chello.nl Reply-To: namhyung@kernel.org, dsahern@gmail.com, mingo@kernel.org, wangnan0@huawei.com, jolsa@kernel.org, linux-kernel@vger.kernel.org, adrian.hunter@intel.com, tglx@linutronix.de, hpa@zytor.com, acme@redhat.com, a.p.zijlstra@chello.nl To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf tools: Remove unused cpu_relax() macros Git-Commit-ID: 4717e03cc7e826818c3f9bd60e9c304a3309c3ad X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Commit-ID: 4717e03cc7e826818c3f9bd60e9c304a3309c3ad Gitweb: http://git.kernel.org/tip/4717e03cc7e826818c3f9bd60e9c304a3309c3ad Author: Arnaldo Carvalho de Melo AuthorDate: Thu, 17 Aug 2017 16:44:36 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 17 Aug 2017 16:51:25 -0300 perf tools: Remove unused cpu_relax() macros Since 195564390210 ("perf_counter: kerneltop: simplify data_head read") we do not use it, and this was way back in 2009, remove it before some other arch maintainer adds its implementation, like so many did, needlessly :-) Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-3l2su9c58eaq4twjzrf9uu08@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/perf-sys.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/tools/perf/perf-sys.h b/tools/perf/perf-sys.h index e4b717e..2aaa736 100644 --- a/tools/perf/perf-sys.h +++ b/tools/perf/perf-sys.h @@ -10,12 +10,10 @@ #include #if defined(__i386__) -#define cpu_relax() asm volatile("rep; nop" ::: "memory"); #define CPUINFO_PROC {"model name"} #endif #if defined(__x86_64__) -#define cpu_relax() asm volatile("rep; nop" ::: "memory"); #define CPUINFO_PROC {"model name"} #endif @@ -44,7 +42,6 @@ #endif #ifdef __ia64__ -#define cpu_relax() asm volatile ("hint @pause" ::: "memory") #define CPUINFO_PROC {"model name"} #endif @@ -53,7 +50,6 @@ #endif #ifdef __aarch64__ -#define cpu_relax() asm volatile("yield" ::: "memory") #endif #ifdef __mips__ @@ -73,14 +69,9 @@ #endif #ifdef __tile__ -#define cpu_relax() asm volatile ("mfspr zero, PASS" ::: "memory") #define CPUINFO_PROC {"model name"} #endif -#ifndef cpu_relax -#define cpu_relax() barrier() -#endif - static inline int sys_perf_event_open(struct perf_event_attr *attr, pid_t pid, int cpu, int group_fd,