From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757631AbZEVRAU (ORCPT ); Fri, 22 May 2009 13:00:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756361AbZEVRAJ (ORCPT ); Fri, 22 May 2009 13:00:09 -0400 Received: from www.tglx.de ([62.245.132.106]:51519 "EHLO www.tglx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756138AbZEVRAI (ORCPT ); Fri, 22 May 2009 13:00:08 -0400 Date: Fri, 22 May 2009 18:59:03 +0200 (CEST) From: Thomas Gleixner To: Stanislaw Gruszka cc: "linux-kernel@vger.kernel.org" , Oleg Nesterov , Peter Zijlstra , Ingo Molnar , Andrew Morton Subject: Re: [PATCH resend4 3/3] itimers: simplify arm_timer() code a bit In-Reply-To: <20090522163625.1e1dd8ce@dhcp-lab-109.englab.brq.redhat.com> Message-ID: References: <20090522154349.396d9ea6@dhcp-lab-109.englab.brq.redhat.com> <20090522163625.1e1dd8ce@dhcp-lab-109.englab.brq.redhat.com> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 22 May 2009, Stanislaw Gruszka wrote: > On Fri, 22 May 2009 16:30:09 +0200 (CEST) > Thomas Gleixner wrote: > > > On Fri, 22 May 2009, Stanislaw Gruszka wrote: > > > case CPUCLOCK_PROF: > > > - if (cputime_eq(p->cputime_expires.prof_exp, > > > - cputime_zero) || > > > - cputime_gt(p->cputime_expires.prof_exp, > > > - nt->expires.cpu)) > > > - p->cputime_expires.prof_exp = > > > - nt->expires.cpu; > > > + if (expires_le(p->cputime_expires.prof_exp, > > > + exp->cpu)) > > > + break; > > > > Why the reverse logic and the extra break ? > > Just to use helper and to make similar logic in all cases in this funcion. Well, you can do that the other way round as well :) Thanks, tglx