Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp96915img; Thu, 21 Mar 2019 15:03:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqyKmE8IujjQUuCe4GyZAG9kwCvDxSApXOGBUJ5pKBBO0z3PfYQBFVd5ryVo5ZbwmBjxkeOm X-Received: by 2002:a17:902:282b:: with SMTP id e40mr5877206plb.111.1553205792261; Thu, 21 Mar 2019 15:03:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553205792; cv=none; d=google.com; s=arc-20160816; b=BNT5T4xpYTopIZPLrHdIhyAgS+p1S2/bZTiF5uvEOoOBGhek4WOXSky/SPrM08n1Qv xPSOZCr2Uvw7cj7cMXHZlLuVm6KWdzPBrbFUdPsAud6sT8soB3UYnrk9jY5dFwHbTq6o KEBpr49ATyLexbYe+Litd0P59kuOqKGbyLoznI+J6EvtPQV7AE0npat5UM/qKeVhkTXF rCCvufGwwPn6uM5rder05Mu5OyhXOrjCNZ/VGr70tI7U4nNAtdWt9w/b9f4ZVzezMAzG OaX1R1YKO/z6HrCpvhtXMTWNZ1StzKZYNLflott6ExWYAQKvPlgqbHdX6uZKls5COT5U KLMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=RNQXjF1EJLWlqpeyJytOWUJk8SheaAW729ZUF6Yb0A8=; b=RvpNUeQcBwGLZv3zDSbWW2alpOmN5tnm+SirSznT3VDLqEdJoUga9chy3qYkgPHR7e GuPGMY5SQ0SoggBdWjAODje3QBUsaFxksnLRNu09dMTZO88p4DjjuOhS3zggcXU05pVr JhNzms+t1bH63tLjbaf+dytH1PuK08nmgZhLG1O1D9wBL8yyvtL3gCDXHwQ+6/Jun8kI 2cvgdJ0CJIfiYrqH6PCZnYmdhR07rSU4xBe8cWTwVBdaU0ahEDZhotRSNlJDsCeHZs0A ZdHyEqz1nED5UeEKkONSDAgLeWLeEDuncTYt+J97Nv13/R8r9xbSiIBD8LMmlzx95qdA 2qkA== 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 e23si5297381pgk.342.2019.03.21.15.02.54; Thu, 21 Mar 2019 15:03:12 -0700 (PDT) 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 S1727542AbfCUWBX (ORCPT + 99 others); Thu, 21 Mar 2019 18:01:23 -0400 Received: from mga06.intel.com ([134.134.136.31]:53200 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727174AbfCUWA0 (ORCPT ); Thu, 21 Mar 2019 18:00:26 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Mar 2019 15:00:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,254,1549958400"; d="scan'208";a="127513566" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.137]) by orsmga008.jf.intel.com with ESMTP; 21 Mar 2019 15:00:23 -0700 Received: by tassilo.localdomain (Postfix, from userid 1000) id 1921730214C; Thu, 21 Mar 2019 15:00:23 -0700 (PDT) From: Andi Kleen To: x86@kernel.org Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, Andi Kleen Subject: [PATCH 03/17] x86: Don't inline __const_udelay Date: Thu, 21 Mar 2019 14:59:55 -0700 Message-Id: <20190321220009.29334-4-andi@firstfloor.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190321220009.29334-1-andi@firstfloor.org> References: <20190321220009.29334-1-andi@firstfloor.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andi Kleen __const_udelay is marked inline, and LTO will happily inline it everywhere Dropping the inline saves ~44k text in a LTO build. 13999560 1740864 1499136 17239560 1070e08 vmlinux-with-udelay-inline 13954764 1736768 1499136 17190668 1064f0c vmlinux-wo-udelay-inline Even without LTO I believe marking it noinline documents it correctly. Signed-off-by: Andi Kleen --- arch/x86/lib/delay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/lib/delay.c b/arch/x86/lib/delay.c index f5b7f1b3b6d7..b7375dc6898f 100644 --- a/arch/x86/lib/delay.c +++ b/arch/x86/lib/delay.c @@ -162,7 +162,7 @@ void __delay(unsigned long loops) } EXPORT_SYMBOL(__delay); -void __const_udelay(unsigned long xloops) +noinline void __const_udelay(unsigned long xloops) { unsigned long lpj = this_cpu_read(cpu_info.loops_per_jiffy) ? : loops_per_jiffy; int d0; -- 2.20.1