summaryrefslogtreecommitdiffstats
path: root/include/asm-ppc64/machdep.h
diff options
context:
space:
mode:
authorMichael Ellerman2005-08-09 03:13:36 +0200
committerPaul Mackerras2005-08-29 02:53:38 +0200
commit180a33627d958d5d9d3602dde6ac74b315e136f0 (patch)
tree2c480741288f1f27ff3b65a95bb67fdf2f206a8f /include/asm-ppc64/machdep.h
parent[PATCH] ppc64: allow xmon=off (diff)
downloadkernel-qcow2-linux-180a33627d958d5d9d3602dde6ac74b315e136f0.tar.gz
kernel-qcow2-linux-180a33627d958d5d9d3602dde6ac74b315e136f0.tar.xz
kernel-qcow2-linux-180a33627d958d5d9d3602dde6ac74b315e136f0.zip
[PATCH] ppc64: Move ppc64_enable_pmcs() logic into a ppc_md function
This patch moves power4_enable_pmcs() to arch/ppc64/kernel/pmc.c. I've tested it on P5 LPAR and P4. It does what it used to. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-ppc64/machdep.h')
-rw-r--r--include/asm-ppc64/machdep.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-ppc64/machdep.h b/include/asm-ppc64/machdep.h
index f0ef06375947..ff2c9287d3b6 100644
--- a/include/asm-ppc64/machdep.h
+++ b/include/asm-ppc64/machdep.h
@@ -140,6 +140,9 @@ struct machdep_calls {
/* Idle loop for this platform, leave empty for default idle loop */
int (*idle_loop)(void);
+
+ /* Function to enable pmcs for this platform, called once per cpu. */
+ void (*enable_pmcs)(void);
};
extern int default_idle(void);