Re: irqbalance+O(1)-sched

From: William Lee Irwin III (wli@holomorphy.com)
Date: Tue May 07 2002 - 10:08:09 EST


On Tue, May 07, 2002 at 05:03:57PM +0200, J.A. Magallon wrote:
> 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 ?

int idle_cpu(int cpu)
{
        return cpu_curr(cpu) == cpu_rq(cpu)->idle;
}

Cheers,
Bill
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue May 07 2002 - 22:00:30 EST