From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 23 Mar 2010 16:33:01 +1100 From: Paul Mackerras To: "K.Prasad" Subject: Re: [Patch 1/1] PPC64-HWBKPT: Implement hw-breakpoints for PPC64 Message-ID: <20100323053301.GA28676@drongo> References: <20100308181232.GA3406@in.ibm.com> <20100308181448.GA5538@in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20100308181448.GA5538@in.ibm.com> Cc: Michael Neuling , Benjamin Herrenschmidt , shaggy@linux.vnet.ibm.com, Frederic Weisbecker , David Gibson , linuxppc-dev@ozlabs.org, Alan Stern , Roland McGrath List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, Mar 08, 2010 at 11:44:48PM +0530, K.Prasad wrote: > @@ -479,6 +483,7 @@ struct task_struct *__switch_to(struct t > old_thread->accum_tb += (current_tb - start_tb); > new_thread->start_tb = current_tb; > } > + flush_ptrace_hw_breakpoint(current); > #endif > > local_irq_save(flags); This line should be in flush_thread(), not __switch_to(). In fact it may not be necessary at all given that flush_ptrace_hw_breakpoint() gets called in do_exit(). Paul.