From: William Lee Irwin III <wli@holomorphy.com>
To: "J.A. Magallon" <jamagallon@able.es>
Cc: Lista Linux-Kernel <linux-kernel@vger.kernel.org>,
Robert Love <rml@tech9.net>, Ingo Molnar <mingo@elte.hu>
Subject: Re: irqbalance+O(1)-sched
Date: Tue, 7 May 2002 08:13:34 -0700 [thread overview]
Message-ID: <20020507151334.GU32767@holomorphy.com> (raw)
In-Reply-To: <20020507150357.GA2142@werewolf.able.es>
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.
Cheers,
Bill
prev parent reply other threads:[~2002-05-07 15:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-07 15:03 irqbalance+O(1)-sched J.A. Magallon
2002-05-07 15:08 ` irqbalance+O(1)-sched William Lee Irwin III
2002-05-07 15:13 ` William Lee Irwin III [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020507151334.GU32767@holomorphy.com \
--to=wli@holomorphy.com \
--cc=jamagallon@able.es \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=rml@tech9.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.