]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[PATCH] ppc64: Move oprofile_impl.h into include/asm-ppc64
authorAnton Blanchard <anton@samba.org>
Tue, 6 Sep 2005 04:55:35 +0000 (14:55 +1000)
committerPaul Mackerras <paulus@samba.org>
Tue, 6 Sep 2005 06:09:21 +0000 (16:09 +1000)
Move oprofile_impl.h into include/asm-ppc64 in preparation for moving
oprofile_model into cpu feature struct.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/ppc64/oprofile/common.c
arch/ppc64/oprofile/op_model_power4.c
arch/ppc64/oprofile/op_model_rs64.c
include/asm-ppc64/oprofile_impl.h [moved from arch/ppc64/oprofile/op_impl.h with 95% similarity]

index 0260122a8d6cede6fcccfb622c03c4f51e7a6aac..3e8daabf10218ec6b2a4ea54a1441da3aa9543e2 100644 (file)
 #include <asm/system.h>
 #include <asm/pmc.h>
 #include <asm/cputable.h>
+#include <asm/oprofile_impl.h>
 
-#include "op_impl.h"
-
-extern struct op_ppc64_model op_model_rs64;
-extern struct op_ppc64_model op_model_power4;
 static struct op_ppc64_model *model;
 
 static struct op_counter_config ctr[OP_MAX_COUNTER];
index e469610efde5776e2a3bef801cad9f5c63770647..32b2bb5625fe3a4f055e445ab1f4619b148f4844 100644 (file)
 #include <asm/cputable.h>
 #include <asm/systemcfg.h>
 #include <asm/rtas.h>
+#include <asm/oprofile_impl.h>
 
 #define dbg(args...)
 
-#include "op_impl.h"
-
 static unsigned long reset_value[OP_MAX_COUNTER];
 
 static int oprofile_running;
index bcec506c266a8d171f0ecbbba52aeeffb85a3723..08c5b333f5c4bfc5a266f294df95fb80c98cd5f8 100644 (file)
 #include <asm/system.h>
 #include <asm/processor.h>
 #include <asm/cputable.h>
+#include <asm/oprofile_impl.h>
 
 #define dbg(args...)
 
-#include "op_impl.h"
-
 static void ctrl_write(unsigned int i, unsigned int val)
 {
        unsigned int tmp = 0;
similarity index 95%
rename from arch/ppc64/oprofile/op_impl.h
rename to include/asm-ppc64/oprofile_impl.h
index 7fa7eaabc035113452be4e1efcf08bd9b2558cda..b04f1dfb14219a9ac96a392db582bd22eecf9b69 100644 (file)
@@ -49,6 +49,9 @@ struct op_ppc64_model {
        int num_counters;
 };
 
+extern struct op_ppc64_model op_model_rs64;
+extern struct op_ppc64_model op_model_power4;
+
 static inline unsigned int ctr_read(unsigned int i)
 {
        switch(i) {