Skip to contentSkip to conversation

timer: do not define __mod_timer as inline function

PATCH New Yuanhan Liu 1 participant 1 message Aug 6, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 timer: do not define __mod_timer as inline function

__mod_timer() is a bit 'huge' to be defined as inline.

$ size kernel/timer*.o
   text    data     bss     dec     hex filename
  18908    4034    8257   31199    79df kernel/timer-before.o
  17961    4034    8257   30252    762c kernel/timer-after.o
Cc Thomas Gleixner <[email protected]>
Cc Ingo Molnar <[email protected]>
---
 kernel/timer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/timer.c +1 -1
index a61c093..0be4216 100644
@@ -736,7 +736,7 @@ static struct tvec_base *lock_timer_base(struct timer_list *timer,
 	}
 }
 
-static inline int
+static int
 __mod_timer(struct timer_list *timer, unsigned long expires,
 						bool pending_only, int pinned)
 {
Signature · 1 line
1.7.7.6