Skip to content

Commit

Permalink
[PATCH] ppc64: Move oprofile_impl.h into include/asm-ppc64
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Anton Blanchard authored and Paul Mackerras committed Sep 6, 2005
1 parent 1a410d8 commit dca8593
Showing 4 changed files with 6 additions and 8 deletions.
5 changes: 1 addition & 4 deletions arch/ppc64/oprofile/common.c
Original file line number Diff line number Diff line change
@@ -17,11 +17,8 @@
#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];
3 changes: 1 addition & 2 deletions arch/ppc64/oprofile/op_model_power4.c
Original file line number Diff line number Diff line change
@@ -16,11 +16,10 @@
#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;
3 changes: 1 addition & 2 deletions arch/ppc64/oprofile/op_model_rs64.c
Original file line number Diff line number Diff line change
@@ -14,11 +14,10 @@
#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;
Original file line number Diff line number Diff line change
@@ -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) {

0 comments on commit dca8593

Please sign in to comment.