From: Ingo Molnar Date: Sat, 25 Jun 2005 21:57:22 +0000 (-0700) Subject: [PATCH] sched: uninline task_timeslice X-Git-Tag: upstream/snapshot3+hdmi~47399^2~198 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=48c08d3f8ff94fa118187e4d8d4a5707bb85e59d;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git [PATCH] sched: uninline task_timeslice "Chen, Kenneth W" uninline task_timeslice() - reduces code footprint noticeably, and it's slowpath code. Signed-off-by: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/sched.c b/kernel/sched.c index 2711130..98bf1c0 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -166,7 +166,7 @@ #define SCALE_PRIO(x, prio) \ max(x * (MAX_PRIO - prio) / (MAX_USER_PRIO/2), MIN_TIMESLICE) -static inline unsigned int task_timeslice(task_t *p) +static unsigned int task_timeslice(task_t *p) { if (p->static_prio < NICE_TO_PRIO(0)) return SCALE_PRIO(DEF_TIMESLICE*4, p->static_prio);