diff options
author | Oleg Nesterov <oleg@redhat.com> | 2013-06-20 17:50:13 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2013-06-20 17:58:55 +0200 |
commit | 7ab71f3244e9f970c29566c5a67e13d1fa38c387 (patch) | |
tree | a6bbb7e9893dc54edcf445c5a2fc75d5e27b2550 /fs/nfsd | |
parent | e1ebe86203e6532eb5a0ae8f26ccae47aca548ae (diff) | |
download | op-kernel-dev-7ab71f3244e9f970c29566c5a67e13d1fa38c387.zip op-kernel-dev-7ab71f3244e9f970c29566c5a67e13d1fa38c387.tar.gz |
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 <vincent.weaver@maine.edu>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Link: http://lkml.kernel.org/r/20130620155013.GA6337@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'fs/nfsd')
0 files changed, 0 insertions, 0 deletions