From: Tom Rini Date: Sun, 10 Feb 2019 08:09:49 -0500 Subject: [U-Boot] initcall: Move to inline function In-Reply-To: <20190131150623.47464-1-agraf@suse.de> References: <20190131150623.47464-1-agraf@suse.de> Message-ID: <20190210130949.GI16814@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Jan 31, 2019 at 04:06:23PM +0100, Alexander Graf wrote: > The board_r init function was complaining that we are looping through > an array, calling all our tiny init stubs sequentially via indirect > function calls (which can't be speculated, so they are slow). > > The solution to that is pretty easy though. All we need to do is inline > the function that loops through the functions and the compiler will > automatically convert almost all indirect calls into direct inlined code. > > With this patch, the overall code size drops (by 40 bytes on riscv64) > and boot time should become measurably faster for every target. > > Signed-off-by: Alexander Graf Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: