Skip to content

Commit 7cf1aaa

Browse files
Andi KleenKAGA-KOKO
authored andcommitted
x86/timer: Don't inline __const_udelay
__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 Inlining it has no advantage in general, so its the right thing to do. Signed-off-by: Andi Kleen <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 81bf665 commit 7cf1aaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/lib/delay.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ void __delay(unsigned long loops)
162162
}
163163
EXPORT_SYMBOL(__delay);
164164

165-
inline void __const_udelay(unsigned long xloops)
165+
void __const_udelay(unsigned long xloops)
166166
{
167167
unsigned long lpj = this_cpu_read(cpu_info.loops_per_jiffy) ? : loops_per_jiffy;
168168
int d0;

0 commit comments

Comments
 (0)