aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@tv-sign.ru>2006-06-27 05:54:42 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-27 20:32:45 -0400
commit9fea80e4d984d411aa188baa31225c273ebe0fe6 (patch)
treeda48ffcb1b5a502d72645e55ade9c6588e784cd4 /kernel/sched.c
parent5c45bf279d378d436ce45825c0f136696c7b6109 (diff)
[PATCH] sched: uninline task_rq_lock()
Saves 543 bytes from sched.o (gcc 3.3.3). Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru> Cc: Ingo Molnar <mingo@elte.hu> Cc: Nick Piggin <nickpiggin@yahoo.com.au> Cc: Con Kolivas <kernel@kolivas.org> Cc: Peter Williams <pwil3058@bigpond.net.au> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 54fa282657cc..19c0d5d16fef 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -359,7 +359,7 @@ static inline void finish_lock_switch(runqueue_t *rq, task_t *prev)
359 * interrupts. Note the ordering: we can safely lookup the task_rq without 359 * interrupts. Note the ordering: we can safely lookup the task_rq without
360 * explicitly disabling preemption. 360 * explicitly disabling preemption.
361 */ 361 */
362static inline runqueue_t *task_rq_lock(task_t *p, unsigned long *flags) 362static runqueue_t *task_rq_lock(task_t *p, unsigned long *flags)
363 __acquires(rq->lock) 363 __acquires(rq->lock)
364{ 364{
365 struct runqueue *rq; 365 struct runqueue *rq;