Commit dca85932 authored by Anton Blanchard's avatar Anton Blanchard Committed by Paul Mackerras

[PATCH] ppc64: Move oprofile_impl.h into include/asm-ppc64

Move oprofile_impl.h into include/asm-ppc64 in preparation for moving
oprofile_model into cpu feature struct.
Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 1a410d88
...@@ -17,11 +17,8 @@ ...@@ -17,11 +17,8 @@
#include <asm/system.h> #include <asm/system.h>
#include <asm/pmc.h> #include <asm/pmc.h>
#include <asm/cputable.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_ppc64_model *model;
static struct op_counter_config ctr[OP_MAX_COUNTER]; static struct op_counter_config ctr[OP_MAX_COUNTER];
......
...@@ -16,11 +16,10 @@ ...@@ -16,11 +16,10 @@
#include <asm/cputable.h> #include <asm/cputable.h>
#include <asm/systemcfg.h> #include <asm/systemcfg.h>
#include <asm/rtas.h> #include <asm/rtas.h>
#include <asm/oprofile_impl.h>
#define dbg(args...) #define dbg(args...)
#include "op_impl.h"
static unsigned long reset_value[OP_MAX_COUNTER]; static unsigned long reset_value[OP_MAX_COUNTER];
static int oprofile_running; static int oprofile_running;
......
...@@ -14,11 +14,10 @@ ...@@ -14,11 +14,10 @@
#include <asm/system.h> #include <asm/system.h>
#include <asm/processor.h> #include <asm/processor.h>
#include <asm/cputable.h> #include <asm/cputable.h>
#include <asm/oprofile_impl.h>
#define dbg(args...) #define dbg(args...)
#include "op_impl.h"
static void ctrl_write(unsigned int i, unsigned int val) static void ctrl_write(unsigned int i, unsigned int val)
{ {
unsigned int tmp = 0; unsigned int tmp = 0;
......
...@@ -49,6 +49,9 @@ struct op_ppc64_model { ...@@ -49,6 +49,9 @@ struct op_ppc64_model {
int num_counters; 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) static inline unsigned int ctr_read(unsigned int i)
{ {
switch(i) { switch(i) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment