Commit 72533db0 authored by Anton Blanchard's avatar Anton Blanchard Committed by Paul Mackerras

[PATCH] powerpc: Remove some ifdefs in oprofile_impl.h

- No one uses op_counter_config.valid, so remove it
- No need to ifdef around function protypes.
Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 0a26b136
...@@ -17,9 +17,6 @@ ...@@ -17,9 +17,6 @@
/* Per-counter configuration as set via oprofilefs. */ /* Per-counter configuration as set via oprofilefs. */
struct op_counter_config { struct op_counter_config {
#ifdef __powerpc64__
unsigned long valid;
#endif
unsigned long enabled; unsigned long enabled;
unsigned long event; unsigned long event;
unsigned long count; unsigned long count;
...@@ -56,17 +53,12 @@ struct op_powerpc_model { ...@@ -56,17 +53,12 @@ struct op_powerpc_model {
int num_counters; int num_counters;
}; };
#ifdef CONFIG_FSL_BOOKE
extern struct op_powerpc_model op_model_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_rs64;
extern struct op_powerpc_model op_model_power4; extern struct op_powerpc_model op_model_power4;
#else /* Otherwise, CONFIG_PPC32 */
extern struct op_powerpc_model op_model_7450; extern struct op_powerpc_model op_model_7450;
#endif
#ifndef CONFIG_FSL_BOOKE
/* All the classic PPC parts use these */ /* All the classic PPC parts use these */
static inline unsigned int ctr_read(unsigned int i) static inline unsigned int ctr_read(unsigned int 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