From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753382AbcKRLVb (ORCPT ); Fri, 18 Nov 2016 06:21:31 -0500 Received: from terminus.zytor.com ([198.137.202.10]:55514 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752567AbcKRLV1 (ORCPT ); Fri, 18 Nov 2016 06:21:27 -0500 Date: Fri, 18 Nov 2016 03:20:57 -0800 From: tip-bot for Len Brown Message-ID: Cc: tglx@linutronix.de, peterz@infradead.org, hpa@zytor.com, linux-kernel@vger.kernel.org, mingo@kernel.org, len.brown@intel.com Reply-To: peterz@infradead.org, hpa@zytor.com, tglx@linutronix.de, len.brown@intel.com, mingo@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: References: To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/idle] x86: Remove x86_test_and_clear_bit_percpu() Git-Commit-ID: 9694be731dc81fec5ad59e863fa6538878ac496a 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: 9694be731dc81fec5ad59e863fa6538878ac496a Gitweb: http://git.kernel.org/tip/9694be731dc81fec5ad59e863fa6538878ac496a Author: Len Brown AuthorDate: Fri, 18 Nov 2016 01:23:20 -0500 Committer: Thomas Gleixner CommitDate: Fri, 18 Nov 2016 12:07:57 +0100 x86: Remove x86_test_and_clear_bit_percpu() Upon removal of the "is_idle" flag, x86_test_and_clear_bit_percpu() is no longer used. Signed-off-by: Len Brown Acked-by: Ingo Molnar Acked-by: Peter Zijlstra (Intel) Link: http://lkml.kernel.org/r/b334ae6819507e3dfc0a4b33ed974714d067eb4a.1479449716.git.len.brown@intel.com Signed-off-by: Thomas Gleixner --- arch/x86/include/asm/percpu.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/arch/x86/include/asm/percpu.h b/arch/x86/include/asm/percpu.h index 84f58de..9fa0360 100644 --- a/arch/x86/include/asm/percpu.h +++ b/arch/x86/include/asm/percpu.h @@ -507,17 +507,6 @@ do { \ #endif -/* This is not atomic against other CPUs -- CPU preemption needs to be off */ -#define x86_test_and_clear_bit_percpu(bit, var) \ -({ \ - bool old__; \ - asm volatile("btr %2,"__percpu_arg(1)"\n\t" \ - CC_SET(c) \ - : CC_OUT(c) (old__), "+m" (var) \ - : "dIr" (bit)); \ - old__; \ -}) - static __always_inline bool x86_this_cpu_constant_test_bit(unsigned int nr, const unsigned long __percpu *addr) {