From: yhlu <yhlu.kernel@gmail.com>
To: "David Rientjes" <rientjes@cs.washington.edu>
Cc: "Andi Kleen" <ak@muc.de>,
"Eric W. Biederman" <ebiederm@xmission.com>,
"Andrew Morton" <akpm@osdl.org>,
"Muli Ben-Yehuda" <muli@il.ibm.com>,
"Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] x86_64 irq: reset more to default when clear irq_vector for destroy_irq
Date: Tue, 24 Oct 2006 23:01:24 -0700 [thread overview]
Message-ID: <86802c440610242301te23d733g9d73402303c76135@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.64N.0610242140140.20151@attu3.cs.washington.edu>
I cut the code paste the lines from __assign_irq_vector().
It seems we need to change
if (old_vector >= 0) {
in __assign_irq_vector with this one to
if (old_vector > 0) {
later. Eric?
YH
> The two conditionals don't complement each other; in fact, only one
> conditional is required since the test for old_vector equality to zero
> will never be satisfied. Also note that irq_vectors are u8 on x86_64 and
> not ints.
>
> static void __clear_irq_vector(int irq)
> {
> u8 old_vector = irq_vector[irq];
> if (old_vector > 0) {
> cpumask_t old_mask;
> int old_cpu;
> cpus_and(old_mask, irq_domain[irq], cpu_online_map);
> for_each_cpu_mask(old_cpu, old_mask)
> per_cpu(vector_irq, old_cpu)[old_vector] = -1;
> }
> irq_vector[irq] = 0;
> irq_domain[irq] = CPU_MASK_NONE;
> }
> -
> 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/
>
next prev parent reply other threads:[~2006-10-25 6:01 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-24 21:33 Lu, Yinghai
2006-10-24 22:52 ` Josef Sipek
2006-10-25 3:46 ` Yinghai Lu
2006-10-25 4:02 ` Yinghai Lu
2006-10-25 4:52 ` David Rientjes
2006-10-25 6:01 ` yhlu [this message]
2006-10-25 11:30 ` Muli Ben-Yehuda
2006-10-25 16:40 Lu, Yinghai
2006-10-27 6:20 ` Eric W. Biederman
2006-10-28 5:44 ` Yinghai Lu
2006-10-28 9:18 ` Oleg Verych
2006-10-28 17:29 ` Andi Kleen
2006-10-28 20:06 ` Eric W. Biederman
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=86802c440610242301te23d733g9d73402303c76135@mail.gmail.com \
--to=yhlu.kernel@gmail.com \
--cc=ak@muc.de \
--cc=akpm@osdl.org \
--cc=ebiederm@xmission.com \
--cc=linux-kernel@vger.kernel.org \
--cc=muli@il.ibm.com \
--cc=rientjes@cs.washington.edu \
/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
all inboxes | Powered by JetHome®