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:08:09 -0700 [thread overview]
Message-ID: <20020507150809.GT32767@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:
> 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
next prev parent reply other threads:[~2002-05-07 15:10 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 ` William Lee Irwin III [this message]
2002-05-07 15:13 ` irqbalance+O(1)-sched William Lee Irwin III
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=20020507150809.GT32767@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox