[lkml]   [2002]   [May]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: irqbalance+O(1)-sched
On Tue, May 07, 2002 at 05:03:57PM +0200, J.A. Magallon wrote:
> I am trying to mix the irqbalance patch on top of the O1-scheduler
> to use it on a dual P4 box.
> Everything mix easy but this piece of code in irqbalance:
> int idle_cpu(int cpu)
> {
> return cpu_curr(cpu) == idle_task(cpu);
> }
> 2.4.18 defines it as
> sched.c:#define idle_task(cpu) (init_tasks[cpu_number_map(cpu)])
> ...
> sched.c:#define idle_task(cpu) (&init_task)
> but O1 kills it.
> Any syggestion on hwo to implement idle_cpu() on top of O1 ?

Another quick one might be

#define idle_task(cpu) (cpu_rq(cpu)->idle)

which leaves idle_cpu() unchanged.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:25    [W:0.035 / U:3.428 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site