Skip to content

Commit

Permalink
[PATCH] sched: uninline inc/dec_nr_running()
Browse files Browse the repository at this point in the history
uninline inc_nr_running() and dec_nr_running():

   text    data     bss     dec     hex filename
   29039    4162      24   33225    81c9 sched.o.before
   29027    4162      24   33213    81bd sched.o.after

Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Ingo Molnar committed Aug 2, 2007
1 parent cb1c4fc commit 4e6f96f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -782,13 +782,13 @@ dec_load(struct rq *rq, const struct task_struct *p, u64 now)
update_load_sub(&rq->ls.load, p->se.load.weight);
}

static inline void inc_nr_running(struct task_struct *p, struct rq *rq, u64 now)
static void inc_nr_running(struct task_struct *p, struct rq *rq, u64 now)
{
rq->nr_running++;
inc_load(rq, p, now);
}

static inline void dec_nr_running(struct task_struct *p, struct rq *rq, u64 now)
static void dec_nr_running(struct task_struct *p, struct rq *rq, u64 now)
{
rq->nr_running--;
dec_load(rq, p, now);
Expand Down

0 comments on commit 4e6f96f

Please sign in to comment.