From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.2 required=3.0 tests=BAYES_00,DATE_IN_PAST_03_06, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 43469C433DB for ; Fri, 5 Feb 2021 01:04:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0547B64DF8 for ; Fri, 5 Feb 2021 01:04:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232545AbhBEBEb (ORCPT ); Thu, 4 Feb 2021 20:04:31 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:44172 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232420AbhBEA7P (ORCPT ); Thu, 4 Feb 2021 19:59:15 -0500 Message-Id: <20210204211155.214169844@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1612486682; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: references:references; bh=SLbWzbzNq9ppfvWEP7ZcRxRy5GM85KbAuBPrLxcZJHI=; b=tiwsb44OOnz+HnVJ+etefFPGA4faSXc7KfIf+P2Urtfn2dfDFWYGBEd6RTpKnPwjDFqZB3 TWkQJEtqll24PPvTgdYwvZKSr0B7YJtUTb4RA23xWWLET7fy0gbamd2uhJVKjt3mxustjn qU9qfUzCzNzF6W3fr21XoRuhNswUpj7GiIbdBt9m9VtEKJHB0XtJM5UbamCERB7Tn14qlh hJ4bZWZFE155ICzGVe1vOpMuG9s/G0X542a2jN/nWi9CsGSSSt6rcfwoog17auQwCuiSsQ lt+WCB5MnK6MeTiJlHeUAKSuS5gBgcnaU5z9tib99xcWcEO/9l+Kf66whi98zw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1612486682; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: references:references; bh=SLbWzbzNq9ppfvWEP7ZcRxRy5GM85KbAuBPrLxcZJHI=; b=YDEztwzslGPRU5xVVjEbCe6AU7mnPSoj2oZR792Na26UXTHaB7HZ+PH4uSgONQduiKhjTX +KxOA525WwUTzXDQ== Date: Thu, 04 Feb 2021 21:49:14 +0100 From: Thomas Gleixner To: LKML Cc: x86@kernel.org, Josh Poimboeuf , Kees Cook Subject: [patch 11/12] softirq: Allow inlining do_softirq_own_stack() References: <20210204204903.350275743@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-transfer-encoding: 8-bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The function to switch to the irq stack on x86 is now minimal and there is only a single caller. Allow the stack switch to be inlined. Signed-off-by: Thomas Gleixner --- include/linux/interrupt.h | 2 ++ kernel/softirq.c | 4 ++++ 2 files changed, 6 insertions(+) --- a/include/linux/interrupt.h +++ b/include/linux/interrupt.h @@ -570,7 +570,9 @@ asmlinkage void do_softirq(void); asmlinkage void __do_softirq(void); #ifdef __ARCH_HAS_DO_SOFTIRQ +# ifndef __ARCH_HAS_DO_SOFTIRQ_INLINE void do_softirq_own_stack(void); +# endif #else static inline void do_softirq_own_stack(void) { --- a/kernel/softirq.c +++ b/kernel/softirq.c @@ -26,6 +26,10 @@ #include #include +#ifdef __ARCH_HAS_DO_SOFTIRQ_INLINE +# include +#endif + #define CREATE_TRACE_POINTS #include