From: Oleg Nesterov Date: Thu, 20 Jun 2013 15:50:13 +0000 (+0200) Subject: hw_breakpoint: Simplify the "weight" usage in toggle_bp_slot() paths X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~62^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ab71f3244e9f970c29566c5a67e13d1fa38c387;p=pandora-kernel.git hw_breakpoint: Simplify the "weight" usage in toggle_bp_slot() paths 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. Reported-by: Vince Weaver Signed-off-by: Oleg Nesterov Acked-by: Frederic Weisbecker Link: http://lkml.kernel.org/r/20130620155013.GA6337@redhat.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed