Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5540866rwb; Tue, 1 Aug 2023 04:29:09 -0700 (PDT) X-Google-Smtp-Source: APBJJlE1B+HMllSa2PYKqwXkef2v353zvmi5T/YCB9Xwh5ofFy5ylZdDa+tliHdJuNVqYicDgf1X X-Received: by 2002:aa7:c616:0:b0:522:2711:863 with SMTP id h22-20020aa7c616000000b0052227110863mr2523453edq.1.1690889348795; Tue, 01 Aug 2023 04:29:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690889348; cv=none; d=google.com; s=arc-20160816; b=Gj2GDbgS2SXb9roUCq4PX5nTv1hmlx8MTnrqRrfIKFppBGI7+jvXELcOX7ZIs5/lKL YZwHhqngvWFn8Lr+Vw1MiwBjJHaeniTlKKACz4+7qxgsxDqxFiHkHu4AakfInCFnU1qs oJaWHTHOFgZRIMCQEEzz/HBd6r+UBcG/I/jd+pdSGneCyTlt/zrEB06KeZefU8XtYMG7 OWG0m+99o2e9xKQd3/Lb5bbkvi5NRORqsQI2UWcKUEtwxqVhT3fdZ8v/K0hRKKAmE8bl gkrFdDD4zs4bb+CdtK1KrZOA/44acf/2FLMbVIUhgrb7EpCuLuMkMKghSVYE/N3dRrdc wfqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:mime-version:references:subject:cc:to:from :dkim-signature:dkim-signature:message-id; bh=ughx6myInj7tBGUgtVNaK0CKBD3pdVmOGF8WRhhzTa4=; fh=mE3iieUIZLcDfOLIULj9X6/p0bMDPZGFSVRsnyRUnTc=; b=yKBLXPWgvwAxH1U6C4kOx9OCMsdhk/51MN1/QMYsihc1BadqVft0X5j8jWoXpnz/Bz OUR+FDLee1yjjq4Gs9SPx0Ynb1UfcMJ1CQwMgmEzmePeRPPyGxaEc2vA1N5Up6sJcsE3 MkHOT7SMcHUG8xh/jZBNEq6eUJKGZ7GyIbe/3yKVgTL3Xc/tnSiidSEpFNFsT3gJv3uU NAisoRhGLOnIcFntBhDjoK5jA4/AyxVnWni25C63XxxJamp81EUwniLO5cflSWfHm8ZN pYaH68jGGcQd07ns9VHd1fZ7ug+cc4R/zk7UyyLFmvVsTk/RHSq7eG848yu5w2Fr8xlI KQ/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=rHSLn+ir; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s22-20020aa7d796000000b00522188e0e6asi8619715edq.635.2023.08.01.04.28.42; Tue, 01 Aug 2023 04:29:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=rHSLn+ir; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233274AbjHAKwp (ORCPT + 99 others); Tue, 1 Aug 2023 06:52:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234234AbjHAKwB (ORCPT ); Tue, 1 Aug 2023 06:52:01 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B000A30D5 for ; Tue, 1 Aug 2023 03:49:21 -0700 (PDT) Message-ID: <20230801103818.269222348@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1690886871; 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: references:references; bh=ughx6myInj7tBGUgtVNaK0CKBD3pdVmOGF8WRhhzTa4=; b=rHSLn+iroDKBNUKXtw9pPhYsqrmzkwUqLvllzlu3roeIo8eKUELgVIyowKOgpjhQ5ahzU2 SiqULSqtGRWtA+NsHCojvMHt+mQR8qArElm+gcZJwEe326cPQs4vmEtPw/+E2D9ulakNln Erkfx1ebufHlpLZAwbZN4bZ4SbRpOL3KGen8flRCVefaPZqk9xDqHAeaP2vS7TuSydjGfH W7oMsCHJW9MaMihU4w5P/dpRy1BdvIZC2rLroPZ2ZFGJCSHyl1+/Crl1T5V6oZFixlLTNP S9nzhXY9qE4d+rYbycur740ZJ19zyugcho4QPp59BJSg5EUy9Aiqq6iiuewRtA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1690886871; 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: references:references; bh=ughx6myInj7tBGUgtVNaK0CKBD3pdVmOGF8WRhhzTa4=; b=QNQIcXi9BMi/myoVMoi004UXU0lGKYIRwNMIv8DSbTRhMtYL/aANXjaSlmBbiyCf6XA2bN 1GbnopHshC91y3AQ== From: Thomas Gleixner To: LKML Cc: x86@kernel.org, Andrew Cooper , Tom Lendacky , Paolo Bonzini , Wei Liu , Arjan van de Ven , Juergen Gross , Michael Kelley , Peter Keresztes Schmidt , "Peter Zijlstra (Intel)" Subject: [patch V3 57/60] x86/apic: Mark all hotpath APIC callback wrappers __always_inline References: <20230801103042.936020332@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Date: Tue, 1 Aug 2023 12:47:51 +0200 (CEST) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no value for instrumentation to look at those wrappers and with the upcoming conversion to static calls even less so. Signed-off-by: Thomas Gleixner Acked-by: Peter Zijlstra (Intel) --- arch/x86/include/asm/apic.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) --- a/arch/x86/include/asm/apic.h +++ b/arch/x86/include/asm/apic.h @@ -371,48 +371,48 @@ void __init apic_install_driver(struct a pr_info("APIC: %s() replaced with %ps()\n", #_callback, _fn); \ } -static inline u32 apic_read(u32 reg) +static __always_inline u32 apic_read(u32 reg) { return apic->read(reg); } -static inline void apic_write(u32 reg, u32 val) +static __always_inline void apic_write(u32 reg, u32 val) { apic->write(reg, val); } -static inline void apic_eoi(void) +static __always_inline void apic_eoi(void) { apic->eoi(); } -static inline void apic_native_eoi(void) +static __always_inline void apic_native_eoi(void) { apic->native_eoi(); } -static inline u64 apic_icr_read(void) +static __always_inline u64 apic_icr_read(void) { return apic->icr_read(); } -static inline void apic_icr_write(u32 low, u32 high) +static __always_inline void apic_icr_write(u32 low, u32 high) { apic->icr_write(low, high); } -static inline void apic_wait_icr_idle(void) +static __always_inline void apic_wait_icr_idle(void) { if (apic->wait_icr_idle) apic->wait_icr_idle(); } -static inline u32 safe_apic_wait_icr_idle(void) +static __always_inline u32 safe_apic_wait_icr_idle(void) { return apic->safe_wait_icr_idle ? apic->safe_wait_icr_idle() : 0; } -static inline bool apic_id_valid(u32 apic_id) +static __always_inline bool apic_id_valid(u32 apic_id) { return apic_id <= apic->max_apic_id; }