powerpc: Move the single step enable code to a generic path
authorSuzuki K. Poulose <suzuki@in.ibm.com>
Mon, 3 Dec 2012 15:08:37 +0000 (20:38 +0530)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 20 Jun 2013 06:55:09 +0000 (16:55 +1000)
commit35fd219a268cc82cef842518cd64ea6949629ba2
tree2226a6d0fe4a0d36d679905c5680f5ca27db0bab
parent85f395c5b0a26b3a80f9e2d35333981a2a75c0ae
powerpc: Move the single step enable code to a generic path

This patch moves the single step enable code used by kprobe to a generic
routine header so that, it can be re-used by other code, in this case,
uprobes. No functional changes.

Signed-off-by: Suzuki K. Poulose <suzuki@in.ibm.com>
Cc: Ananth N Mavinakaynahalli <ananth@in.ibm.com>
Cc: Kumar Gala <galak@kernel.crashing.org>
Cc: linuxppc-dev@ozlabs.org
Acked-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/probes.h
arch/powerpc/kernel/kprobes.c