[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LFD.1.10.0902091129150.12457@ftp.linux-mips.org>
Date: Mon, 9 Feb 2009 11:38:29 +0000 (GMT)
From: "Maciej W. Rozycki" <macro@...ux-mips.org>
To: Ingo Molnar <mingo@...e.hu>
cc: Yinghai Lu <yinghai@...nel.org>,
Thomas Gleixner <tglx@...utronix.de>,
"H. Peter Anvin" <hpa@...or.com>,
Andrew Morton <akpm@...ux-foundation.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] x86: check_timer cleanup
On Mon, 9 Feb 2009, Ingo Molnar wrote:
> > Impact: remove extra unmask, and pair disable/enable
> >
> > for edge trigger io-apic routing, already unmasked via setup_IO_APIC_irq,
> > so don't unmask it again.
> >
> > also do call local_irq_disable() between timer_irq_works(), between it does call
> > local_irq_enable() inside.
> > also remove not needed apic version reading for 64bit
> >
> > Signed-off-by: Yinghai Lu <yinghai@...nel.org>
> >
> > ---
> > arch/x86/kernel/io_apic.c | 30 ++++++++++++++++++++++--------
> > 1 file changed, 22 insertions(+), 8 deletions(-)
>
> applied to tip/x86/apic, thanks Yinghai. Maybe this even solves some of the spurious
> detection troubles we had in this code.
I'll see if I can find time to look into it in details, but it looks
dodgy to me. The thing is setup_timer_IRQ0_pin() is special -- due to
line rerouting it may not necessarily be called for an input already set
up by setup_IO_APIC_irqs(). I recall keeping this mask set until ready
for a reason when doing the cleanup last year -- I think old code actually
used to do what the change now reintroduces. What's the reason of this
change?
And timer_irq_works() used to restore the local interrupt mask within
itself -- perhaps it should be brought back rather than cluttering code
with local_irq_disable() calls throughout?
What problems are you referring to, Ingo? Perhaps they should be looked
into specifically?
Maciej
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists