From: Oleg Nesterov Date: Tue, 27 Jun 2006 09:54:42 +0000 (-0700) Subject: [PATCH] sched: uninline task_rq_lock() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9fea80e4d984d411aa188baa31225c273ebe0fe6;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [PATCH] sched: uninline task_rq_lock() Saves 543 bytes from sched.o (gcc 3.3.3). Signed-off-by: Oleg Nesterov Cc: Ingo Molnar Cc: Nick Piggin Cc: Con Kolivas Cc: Peter Williams Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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) * interrupts. Note the ordering: we can safely lookup the task_rq without * explicitly disabling preemption. */ -static inline runqueue_t *task_rq_lock(task_t *p, unsigned long *flags) +static runqueue_t *task_rq_lock(task_t *p, unsigned long *flags) __acquires(rq->lock) { struct runqueue *rq;