mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: BFS 420: cleanup in tick handling
@ 2012-05-19  7:23 Hillf Danton
  0 siblings, 0 replies; 7+ messages in thread
From: Hillf Danton @ 2012-05-19  7:23 UTC (permalink / raw)
  To: LKML, 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 */
--

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-05-23 13:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <j2MgV-2Qe-9@gated-at.bofh.it>
2012-05-20  9:01 ` BFS 420: cleanup in tick handling Martin
2012-05-22 12:42   ` Hillf Danton
     [not found]     ` <CANQmPXh+0LECyLJ-MrDBZf2ZwLv5BJk0+DCFgPzqSChrFV=2WA@mail.gmail.com>
2012-05-22 13:50       ` Hillf Danton
     [not found]         ` <CANQmPXhYMbDG7Wiaiwbr3J+Fft3FnaS=RM2t=FSRN-hYDSbMzw@mail.gmail.com>
2012-05-22 14:04           ` Hillf Danton
     [not found]             ` <CANQmPXgqjSuo0jy-O04-qp64b4J-Lk64sv0wzmdG1yUtc9v-Sw@mail.gmail.com>
2012-05-22 14:09               ` Hillf Danton
2012-05-23 13:28           ` Hillf Danton
2012-05-19  7:23 Hillf Danton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®