Re: [PATCH] x86: Get irq for hpet timer

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Maciej W. Rozycki <macro@...>
Cc: Kevin Hao <kexin.hao@...>, <venkatesh.pallipadi@...>, <bob.picco@...>, <mingo@...>, <tglx@...>, <linux-kernel@...>, Balaji Rao <balajirrao@...>
Date: Wednesday, May 21, 2008 - 4:28 am

Maciej W. Rozycki wrote:

HPET interrupts can be either edge or level triggered.  Probably we
should modify it according to the type of the interrupt line we're
trying to grab.


An edge-triggered HPET interrupt line is not shared (we set IRQF_SHARED
only if the register says that it's level triggered).


I don't have much of a clue about that "somehow", but this sound like a
good idea.  ;-)

I think hpet_reserve_platform_timers() might be the place for this.

It gets called from hpet_late_init(), which is a fs_initcall, so I think
we should be careful not to grab some unsharable interrupt that might be
needed by some ISA device whose driver is initialized later.
(This was a bug in 2.6.25-rc5: <http://bugzilla.kernel.org/show_bug.cgi?id=10382>)


Regards,
Clemens
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] x86: Get irq for hpet timer, Kevin Hao, (Fri May 16, 2:05 am)
Re: [PATCH] x86: Get irq for hpet timer, Clemens Ladisch, (Fri May 16, 4:46 am)
Re: [PATCH] x86: Get irq for hpet timer, Kevin Hao, (Fri May 16, 5:14 am)
Re: [PATCH] x86: Get irq for hpet timer, Clemens Ladisch, (Mon May 19, 12:10 pm)
Re: [PATCH] x86: Get irq for hpet timer, Kevin Hao, (Tue May 20, 5:03 am)
Re: [PATCH] x86: Get irq for hpet timer, Maciej W. Rozycki, (Tue May 20, 11:46 am)
Re: [PATCH] x86: Get irq for hpet timer, Clemens Ladisch, (Wed May 21, 4:28 am)
Re: [PATCH] x86: Get irq for hpet timer, Maciej W. Rozycki, (Wed May 21, 11:47 pm)
Re: [PATCH] x86: Get irq for hpet timer, Kevin Hao, (Thu May 22, 3:27 am)
Re: [PATCH] x86: Get irq for hpet timer, Maciej W. Rozycki, (Thu May 22, 11:25 am)
Re: [PATCH] x86: Get irq for hpet timer, Kevin Hao, (Wed May 28, 6:42 am)
Re: [PATCH] x86: Get irq for hpet timer, Maciej W. Rozycki, (Wed May 28, 11:13 pm)
Re: [PATCH] x86: Get irq for hpet timer, Kevin Hao, (Thu May 29, 6:41 am)
Re: [PATCH] x86: Get irq for hpet timer, Maciej W. Rozycki, (Thu May 29, 10:32 am)
Re: [PATCH] x86: Get irq for hpet timer, Kevin Hao, (Fri May 30, 1:32 am)
Re: [PATCH] x86: Get irq for hpet timer, Ingo Molnar, (Mon Jun 2, 5:35 am)
Re: [PATCH] x86: Get irq for hpet timer, Maciej W. Rozycki, (Mon May 19, 5:21 pm)
Re: [PATCH] x86: Get irq for hpet timer, Balaji Rao R, (Fri May 16, 3:53 am)
Re: [PATCH] x86: Get irq for hpet timer, Kevin Hao, (Fri May 16, 4:03 am)
Re: [PATCH] x86: Get irq for hpet timer, Balaji Rao, (Fri May 16, 4:30 am)