From: "Jan Beulich" Subject: RE: bogus HPET initialization order on x86 Date: Fri, 11 Mar 2011 08:24:42 +0000 Message-ID: <4D79EA5A0200007800035BF4@vpn.id2.novell.com> References: <4D77A07D020000780003593A@vpn.id2.novell.com> <4D77A43A0200007800035980@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Gang Wei Cc: Keir Fraser , "xen-devel@lists.xensource.com" , Ke Yu List-Id: xen-devel@lists.xenproject.org >>> On 10.03.11 at 04:35, "Wei, Gang" wrote: > Jan Beulich wrote on 2011-03-09: >> Also, what's the point of decrementing the per-CPU irq_count in >> hpet_legacy_irq_tick()? >=20 > The per-CPU irq_count are used for calculate the total irq number = excluding=20 > hpet irqs in a past period to give a estimation of IO frequence. The = hpet irq=20 > was counted in do_IRQ, so need to reduce it while handling it. You can = see=20 > another one in hpet_interrupt_handler(). I can understand the latter, but the one I was asking about decrements irq_count even if not calling the event handler (i.e. when returning zero from the function). In other words, I would have understood what this is for if it was sitting after the initial if(). Jan