Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3986127imu; Mon, 12 Nov 2018 04:02:21 -0800 (PST) X-Google-Smtp-Source: AJdET5dR/8RqtAfua2vgKGTcGNZJJFI4LeBXbGBBDP+78HGyAl3yIGjX0LOs7CrUDJa/2N5ttIzm X-Received: by 2002:a63:8043:: with SMTP id j64mr569157pgd.405.1542024141052; Mon, 12 Nov 2018 04:02:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542024141; cv=none; d=google.com; s=arc-20160816; b=LrDR+fO+Z2hwwxZl8mMbVMFhxuHvGKsxsKm6ahEDC3wECoXRVB5VQcmj+b89M4GlDA DyDQdyZUQu+GT0XznYUDuN+OJ97OirBKtbYgxC2VmWWCfMk2WJmcGGqW5dVyQPJMXQ2W h6b6S9w+Uci6muX8WPfifhckoJ89BsBRvVAeviEeJG6pXi8KZHCTDKW86djtHtD6g/qh B6Le0t2Iwk4ZpywUKwISVAFdDWJPXPqHQWm5vWiN2B0g7FF6T07Au4FOAy5SG0sGOufb PKpgLSHDId4tCgGopiaxYw8CxrljFfoZkxSojqE2/Piac8MdLnJr9egOm4I3CvpT+JXu RuMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=RYWaOAnf9qaWsKat9ZimZ3k0FbfQAlGSmnEU1Al/AZE=; b=TlIJTiie07I/EeMUolDIEyyw9ciLDAgFsFZIRibtyHP5Eo4HS/o+99i9RU9XIumAkJ SH/nNy6UrCd1+lqeJBB8wqEs9TL46ZuEoT59qqLh8ZbNTVec5WzJQOoZcSpp/XDSk9/X pxlSkpAhkzkfjpdCf4Zgehgaz4YrRjxoC/ehGI6ibdcCJOZCMuPSWvE+uSIbMq81LiRr pF5IrMtlhtUd55XOAEMdefTeU+Uy7ah1WBWsxLhoYTP0iTwYZw9udvUAS7ZsiaF0nv2J 5H92VnsBXMeRB+zx3vhaX6OBeEWizIgSDahjD5MNNuEMcLk4bQplzL5CEYrEdzyzs5BV Q0DA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a34si15550210pgb.458.2018.11.12.04.01.57; Mon, 12 Nov 2018 04:02:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729513AbeKLVu1 (ORCPT + 99 others); Mon, 12 Nov 2018 16:50:27 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:34500 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728302AbeKLVu0 (ORCPT ); Mon, 12 Nov 2018 16:50:26 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B5B2C15AB; Mon, 12 Nov 2018 03:57:29 -0800 (PST) Received: from e112298-lin.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id E0B9F3F5A0; Mon, 12 Nov 2018 03:57:27 -0800 (PST) From: Julien Thierry To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, daniel.thompson@linaro.org, joel@joelfernandes.org, marc.zyngier@arm.com, christoffer.dall@arm.com, james.morse@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, Julien Thierry Subject: [PATCH v6 01/24] arm64: Remove unused daif related functions/macros Date: Mon, 12 Nov 2018 11:56:52 +0000 Message-Id: <1542023835-21446-2-git-send-email-julien.thierry@arm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1542023835-21446-1-git-send-email-julien.thierry@arm.com> References: <1542023835-21446-1-git-send-email-julien.thierry@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There are some helpers to modify PSR.[DAIF] bits that are not referenced anywhere. The less these bits are available outside of local_irq_* functions the better. Get rid of those unused helpers. Signed-off-by: Julien Thierry Cc: Catalin Marinas Cc: Will Deacon Cc: James Morse --- arch/arm64/include/asm/assembler.h | 10 +--------- arch/arm64/include/asm/daifflags.h | 10 ---------- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/arch/arm64/include/asm/assembler.h b/arch/arm64/include/asm/assembler.h index 6142402..6e76c8e 100644 --- a/arch/arm64/include/asm/assembler.h +++ b/arch/arm64/include/asm/assembler.h @@ -60,16 +60,8 @@ .endm /* - * Enable and disable interrupts. + * Save/restore interrupts. */ - .macro disable_irq - msr daifset, #2 - .endm - - .macro enable_irq - msr daifclr, #2 - .endm - .macro save_and_disable_irq, flags mrs \flags, daif msr daifset, #2 diff --git a/arch/arm64/include/asm/daifflags.h b/arch/arm64/include/asm/daifflags.h index 8d91f22..546bc39 100644 --- a/arch/arm64/include/asm/daifflags.h +++ b/arch/arm64/include/asm/daifflags.h @@ -43,16 +43,6 @@ static inline unsigned long local_daif_save(void) return flags; } -static inline void local_daif_unmask(void) -{ - trace_hardirqs_on(); - asm volatile( - "msr daifclr, #0xf // local_daif_unmask" - : - : - : "memory"); -} - static inline void local_daif_restore(unsigned long flags) { if (!arch_irqs_disabled_flags(flags)) -- 1.9.1