diff options
author | Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> | 2009-11-04 16:16:54 +0900 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-11-04 11:43:43 +0100 |
commit | 9824a2b728b63e7ff586b9fd9293c819be79f0f3 (patch) | |
tree | cb73b6d37e5854206bf669bc63c72342191039c8 /kernel/sched.c | |
parent | 2a2bb3142d326bb28b03875cabfc49baaac9a14a (diff) | |
download | blackbird-op-linux-9824a2b728b63e7ff586b9fd9293c819be79f0f3.tar.gz blackbird-op-linux-9824a2b728b63e7ff586b9fd9293c819be79f0f3.zip |
sched: Remove unused cpu_nr_migrations()
cpu_nr_migrations() is not used, remove it.
Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <4AF12A66.6020609@ct.jp.nec.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 67be4d0dddaa..30fd0ba5f603 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -541,7 +541,6 @@ struct rq { struct load_weight load; unsigned long nr_load_updates; u64 nr_switches; - u64 nr_migrations_in; struct cfs_rq cfs; struct rt_rq rt; @@ -2049,7 +2048,6 @@ void set_task_cpu(struct task_struct *p, unsigned int new_cpu) #endif if (old_cpu != new_cpu) { p->se.nr_migrations++; - new_rq->nr_migrations_in++; #ifdef CONFIG_SCHEDSTATS if (task_hot(p, old_rq->clock, NULL)) schedstat_inc(p, se.nr_forced2_migrations); @@ -2989,15 +2987,6 @@ static void calc_load_account_active(struct rq *this_rq) } /* - * Externally visible per-cpu scheduler statistics: - * cpu_nr_migrations(cpu) - number of migrations into that cpu - */ -u64 cpu_nr_migrations(int cpu) -{ - return cpu_rq(cpu)->nr_migrations_in; -} - -/* * Update rq->cpu_load[] statistics. This function is usually called every * scheduler tick (TICK_NSEC). */ |