From: Keir Fraser Subject: Re: [PATCH] x86/hpet: simplify hpet_get_channel() Date: Fri, 23 Mar 2012 15:05:32 +0000 Message-ID: References: <4F6C9985020000780007A91F@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4F6C9985020000780007A91F@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: Gang Wei , xen-devel List-Id: xen-devel@lists.xenproject.org On 23/03/2012 14:40, "Jan Beulich" wrote: >> Does that matter? It's the last thing done before going into deep sleep. >> >> I suppose I don't mind that much, the whole thing just seems to make the C >> code longer. > > Okay, let's forget about it then. (I could certainly make the code > shorter using a few comma expressions, but I don't think you'd > like that any better.) Not really! Getting rid of the lock and using cmpxchg, and making next_channel have the right meaning all makes sense. So a patch that just replaced the locked region, but didn't touch the following for-loop, would make sense to me. You can consider that Acked if you want to apply it. -- Keir