Messages in this thread Patch in this message | | | Date | Sat, 19 May 2012 15:23:16 +0800 | Subject | Re: BFS 420: cleanup in tick handling | From | Hillf Danton <> |
| |
The cpu on stack is not needed, so remove it.
--- a/kernel/sched/bfs.c Mon May 14 20:50:38 2012 +++ b/kernel/sched/bfs.c Sat May 19 15:18:24 2012 @@ -2822,8 +2822,7 @@ void wake_up_idle_cpu(int cpu); */ void scheduler_tick(void) { - int cpu __maybe_unused = smp_processor_id(); - struct rq *rq = cpu_rq(cpu); + struct rq *rq = this_rq();
sched_clock_tick(); /* grq lock not grabbed, so only update rq clock */ --
| |