Skip to content

Commit

Permalink
[PATCH] powerpc: Remove some ifdefs in oprofile_impl.h
Browse files Browse the repository at this point in the history
- No one uses op_counter_config.valid, so remove it
- No need to ifdef around function protypes.

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 Mar 28, 2006
1 parent 0a26b13 commit 72533db
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions include/asm-powerpc/oprofile_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@

/* Per-counter configuration as set via oprofilefs. */
struct op_counter_config {
#ifdef __powerpc64__
unsigned long valid;
#endif
unsigned long enabled;
unsigned long event;
unsigned long count;
Expand Down Expand Up @@ -56,17 +53,12 @@ struct op_powerpc_model {
int num_counters;
};

#ifdef CONFIG_FSL_BOOKE
extern struct op_powerpc_model op_model_fsl_booke;
#else /* Otherwise, it's classic */

#ifdef CONFIG_PPC64
extern struct op_powerpc_model op_model_rs64;
extern struct op_powerpc_model op_model_power4;

#else /* Otherwise, CONFIG_PPC32 */
extern struct op_powerpc_model op_model_7450;
#endif

#ifndef CONFIG_FSL_BOOKE

/* All the classic PPC parts use these */
static inline unsigned int ctr_read(unsigned int i)
Expand Down

0 comments on commit 72533db

Please sign in to comment.