|
From: | Scott Wood |
Subject: | Re: [Qemu-ppc] [PATCH 09/15] openpic: always call IRQ_check from IRQ_get_next |
Date: | Thu, 3 Jan 2013 14:09:25 -0600 |
On 01/03/2013 12:42:09 PM, Alexander Graf wrote:
On 22.12.2012, at 03:15, Scott Wood wrote: > Previously the code relied on the queue's "next" field getting > set to -1 sometime between an update to the bitmap, and the next > call to IRQ_get_next. Sometimes this happened after the update. > Sometimes it happened before the check. Sometimes it didn't happen > at all. > > Signed-off-by: Scott Wood <address@hidden>Have you verified that we don't run the check too often then? It's quite costly, no?
Correctness takes precedence over speed, as does readability/maintainability if the difference is minor. In any case, the check gets faster later in the patchset.
-Scott
[Prev in Thread] | Current Thread | [Next in Thread] |