Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6363043imu; Mon, 21 Jan 2019 07:39:15 -0800 (PST) X-Google-Smtp-Source: ALg8bN5zr28uTMawjdfo5T80clErqwBCMsRcMHI74Sl1+dsUIxlqVKKbDhjm5aooXqROwV1r/rWQ X-Received: by 2002:a63:9a09:: with SMTP id o9mr27439501pge.94.1548085155236; Mon, 21 Jan 2019 07:39:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548085155; cv=none; d=google.com; s=arc-20160816; b=b9gcjPQebvZUXFe5qGrJ/VlmoptONyGvlm+FINkpMnFgRVo5ES3fxQ8ybqxLZ3IQ+I 1Wf//KdkMak76C95kgRzbwYcuFIQs01ehri+P19LaqCHlNHD2xOG65g+QzfREmzenpuQ IyYAnqkye29OAt6aVJS3nzgxLLUfqrH0YBQuXcv9JQjQ9AMmx4IVuW/YtHt//LHSLjUJ yD+3uTG4uc+ywhIYxpHFM49/s2L6Uc17wetfkc4AZWAYfx79KJZvKvpail6Ttf5sbYow oI0Q4JY4gFGwYhxoN9rFBh/xLzZ3OoEUcdNsApzIIXIHpEX+b7i0Rj+6F1G4E5MOr28z IZTA== 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=c9BVpuq8dikL90D8y2yVsUvkjHn+j60jp0mbLgCzK8A=; b=zaoDl2K8O5s/uIrOabuvfYtIJu9gaSQRV9xF95+vRC3l43SRLMLLbcJOWweIHtwqTI Ha0EprPPE1fAadv/WFTSQ88yc7CkECs8Znj2ElKmBtSEWfxlIWQvtdRF9bXNvqM8jQRs GCza2yllAQoY9zqUK99zlWrw6vgkGIkO+N3q3nDBr1xZy/O7Hj1VP/9Jagd10KfLLIZC HgLIrwQ5fWZOjwp/4RPzEbHjWKYRU2/hKLdyg4VrPZLXFclIjfVLzuNzLSIvCFzBcNXP eeRgUbJ0MAneg3mKHL/Rhlx/yen4l7JXRUGfId4FRggqTfSbhHdWVJh63OXsPupnM4um aO8g== 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 z14si3147488pga.349.2019.01.21.07.38.59; Mon, 21 Jan 2019 07:39:15 -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 S1729612AbfAUPeI (ORCPT + 99 others); Mon, 21 Jan 2019 10:34:08 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:36384 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728515AbfAUPeG (ORCPT ); Mon, 21 Jan 2019 10:34:06 -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 8FDD51650; Mon, 21 Jan 2019 07:34:05 -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 94A173F5C1; Mon, 21 Jan 2019 07:34:03 -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, mark.rutland@arm.com, Julien Thierry Subject: [PATCH v9 02/26] arm64: Remove unused daif related functions/macros Date: Mon, 21 Jan 2019 15:33:21 +0000 Message-Id: <1548084825-8803-3-git-send-email-julien.thierry@arm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1548084825-8803-1-git-send-email-julien.thierry@arm.com> References: <1548084825-8803-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 Reviewed-by: Mark Rutland Acked-by: Catalin Marinas 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 4feb611..7acf243 100644 --- a/arch/arm64/include/asm/assembler.h +++ b/arch/arm64/include/asm/assembler.h @@ -62,16 +62,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