Received: by 10.223.185.116 with SMTP id b49csp1025354wrg; Wed, 14 Feb 2018 10:24:53 -0800 (PST) X-Google-Smtp-Source: AH8x224/vGs/lgQWsnqkdcwHaDPEb1Yk87fzzbER7y5SZoJh/A8lAPJ002hxXKoqZr5AjcKcBnUL X-Received: by 10.98.245.18 with SMTP id n18mr103103pfh.25.1518632693276; Wed, 14 Feb 2018 10:24:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518632693; cv=none; d=google.com; s=arc-20160816; b=tIA223Ukv6PVGELAAQNLduIbHUtHq00DYidFA5HW74PfP+vGxd92sgGlgrJip3zTCx DX/ZMTPso0NjRPhFt84pefiZ0dwXzwtUb11TwY8oUlxhZ/yy1J+kxVAgK3P2SZlHbMza vzOROqN4vD+nMflrnzm537hS0ccU6P8KmrGgo9mehHABcf03miM6tk97lEN1jqsGDpa5 o8UWxW9eaYdczmXmL0udUIcyKbsJyTuRXxXHp6ppkS1tsuJ5KJt/kKe8CHToCdLuIRCT lqY3a2bMRTpQkPdV+GiaHovxNxnlxjZigpGpNgN5CjwZI0qan7idyKFY46YsP0XhlaZf I7YQ== 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:arc-authentication-results; bh=u19vELaUjwMN7rMvLDY+sLExQbLJeSxC807cjVJa1qA=; b=0F0yYmAVwf6Ij3Uws16WuAInPM4NPxYLxIolxD8JwuD/rAJwvyn3CIiiHVS2g3L3dB Nejvv6NBhwKGNimGwRX15moSSv0gOXz7FBGx2JmqVwWa0X+r3nRzKqPOeKtqOaEe+Ok/ HSBpJ3eqB21T0bBIIGG8CRn17UvFh3JXCZITksj/x/UHOP2o2YK5pUNzWE9TQhTqYsFn 2g6/3lnk0daY00NwpwBg/iBiFmOMbltYvziqNVBgG7ogVjUNVE1Ab1TYzfLSAQU3MKl2 OAZwZBIK1IH22XYBP1M5YFbTugalS0EqUlAqPtB8ga3wjZFooGOffLgctvxMPAxNE+pA KZ2A== 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 f12si70528pga.22.2018.02.14.10.24.38; Wed, 14 Feb 2018 10:24:53 -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 S1161859AbeBNSWf (ORCPT + 99 others); Wed, 14 Feb 2018 13:22:35 -0500 Received: from isilmar-4.linta.de ([136.243.71.142]:48076 "EHLO isilmar-4.linta.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161692AbeBNSWe (ORCPT ); Wed, 14 Feb 2018 13:22:34 -0500 Received: from light.dominikbrodowski.net (isilmar.linta [10.0.0.1]) by isilmar-4.linta.de (Postfix) with ESMTPS id 67290200902; Wed, 14 Feb 2018 18:22:33 +0000 (UTC) Received: by light.dominikbrodowski.net (Postfix, from userid 1000) id 7E28220BF5; Wed, 14 Feb 2018 19:22:22 +0100 (CET) From: Dominik Brodowski To: linux-kernel@vger.kernel.org, mingo@kernel.org, x86@kernel.org Cc: torvalds@linux-foundation.org, luto@kernel.org, ak@linux.intel.com, tglx@linutronix.de, dan.j.williams@intel.com Subject: [RFC PATCH 4/4] x86/entry/64: remove interrupt macro Date: Wed, 14 Feb 2018 19:21:13 +0100 Message-Id: <20180214182113.27247-5-linux@dominikbrodowski.net> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180214182113.27247-1-linux@dominikbrodowski.net> References: <20180214182113.27247-1-linux@dominikbrodowski.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It is now trivial to call the interrupt helper function and then the actual worker. Therefore, remove the interrupt macro. Suggested-by: Linus Torvalds Signed-off-by: Dominik Brodowski --- arch/x86/entry/entry_64.S | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/arch/x86/entry/entry_64.S b/arch/x86/entry/entry_64.S index b60a3b692ca9..09205da68764 100644 --- a/arch/x86/entry/entry_64.S +++ b/arch/x86/entry/entry_64.S @@ -607,15 +607,6 @@ ENTRY(interrupt_helper) ret END(interrupt_helper) -/* 0(%rsp): ~(interrupt number) */ - .macro interrupt func - cld - - call interrupt_helper - - call \func /* rdi points to pt_regs */ - .endm - /* * The interrupt stubs push (~vector+0x80) onto the stack and * then jump to common_interrupt. @@ -624,7 +615,8 @@ END(interrupt_helper) common_interrupt: ASM_CLAC addq $-0x80, (%rsp) /* Adjust vector to [-256, -1] range */ - interrupt do_IRQ + call interrupt_helper + call do_IRQ /* rdi points to pt_regs */ /* 0(%rsp): old RSP */ ret_from_intr: DISABLE_INTERRUPTS(CLBR_ANY) @@ -816,7 +808,8 @@ ENTRY(\sym) ASM_CLAC pushq $~(\num) .Lcommon_\sym: - interrupt \do_sym + call interrupt_helper + call \do_sym /* rdi points to pt_regs */ jmp ret_from_intr END(\sym) .endm -- 2.16.1