Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754088Ab3FONOk (ORCPT ); Sat, 15 Jun 2013 09:14:40 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:49160 "EHLO mail-wi0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751837Ab3FONOi (ORCPT ); Sat, 15 Jun 2013 09:14:38 -0400 Date: Sat, 15 Jun 2013 15:14:34 +0200 From: Frederic Weisbecker To: Oleg Nesterov Cc: Ingo Molnar , Vince Weaver , linux-kernel@vger.kernel.org, Peter Zijlstra , Paul Mackerras , Arnaldo Carvalho de Melo , trinity@vger.kernel.org, Jiri Olsa Subject: Re: [PATCH 2/3] hw_breakpoint: Simplify the "weight" usage in toggle_bp_slot() paths Message-ID: <20130615131432.GC1965@somewhere.redhat.com> References: <20130601194526.GA27149@redhat.com> <20130601194606.GC27149@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130601194606.GC27149@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 609 Lines: 13 On Sat, Jun 01, 2013 at 09:46:06PM +0200, Oleg Nesterov wrote: > Change toggle_bp_slot() to make "weight" negative if !enable. This > way we can always use "+ weight" without additional "if (enable)" > check and toggle_bp_task_slot() no longer needs this arg. > > Signed-off-by: Oleg Nesterov Acked-by: Frederic Weisbecker -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/