From: Andreas Schwab Date: Tue, 21 Jan 2014 22:24:02 +0000 (+0100) Subject: powerpc: Fix hw breakpoints on !HAVE_HW_BREAKPOINT configurations X-Git-Tag: v4.14-rc1~8133^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1c430c06d0ce871f36b2af504d45a07356e44800;p=platform%2Fkernel%2Flinux-rpi.git powerpc: Fix hw breakpoints on !HAVE_HW_BREAKPOINT configurations This fixes a logic error that caused a failure to update the hw breakpoint registers when not using the hw-breakpoint interface. Signed-off-by: Andreas Schwab Signed-off-by: Benjamin Herrenschmidt --- diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index 64b7a6e..8d4c247f1 100644 --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c @@ -811,7 +811,7 @@ struct task_struct *__switch_to(struct task_struct *prev, * schedule DABR */ #ifndef CONFIG_HAVE_HW_BREAKPOINT - if (unlikely(hw_brk_match(&__get_cpu_var(current_brk), &new->thread.hw_brk))) + if (unlikely(!hw_brk_match(&__get_cpu_var(current_brk), &new->thread.hw_brk))) set_breakpoint(&new->thread.hw_brk); #endif /* CONFIG_HAVE_HW_BREAKPOINT */ #endif