hw-breakpoints: use wrapper routines around debug registers in processor related...
authorK.Prasad <prasad@linux.vnet.ibm.com>
Mon, 1 Jun 2009 18:14:26 +0000 (23:44 +0530)
committerFrederic Weisbecker <fweisbec@gmail.com>
Tue, 2 Jun 2009 20:46:59 +0000 (22:46 +0200)
commit1e3500666f7c5daaadadb8431a2927cdbbdb7dd4
treeb825e40b508818673ccbab079351d9140bbd48f7
parent08d68323d1f0c34452e614263b212ca556dae47f
hw-breakpoints: use wrapper routines around debug registers in processor related functions

This patch enables the use of wrapper routines to access the debug/breakpoint
registers on cpu management.

The hardcoded debug registers save and restore operations for threads
breakpoints are replaced by wrappers.

And now that we handle the kernel breakpoints too, we also need to handle them
on cpu hotplug operations.

[ Impact: adapt new hardware breakpoint api to cpu hotplug ]

Original-patch-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: K.Prasad <prasad@linux.vnet.ibm.com>
Reviewed-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
arch/x86/kernel/smpboot.c
arch/x86/power/cpu_32.c
arch/x86/power/cpu_64.c