diff options
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r-- | include/asm-powerpc/cell-pmu.h | 18 | ||||
-rw-r--r-- | include/asm-powerpc/cputable.h | 1 | ||||
-rw-r--r-- | include/asm-powerpc/oprofile_impl.h | 3 |
3 files changed, 22 insertions, 0 deletions
diff --git a/include/asm-powerpc/cell-pmu.h b/include/asm-powerpc/cell-pmu.h index 63037c352fde..e8c2ebd3ddda 100644 --- a/include/asm-powerpc/cell-pmu.h +++ b/include/asm-powerpc/cell-pmu.h | |||
@@ -91,5 +91,23 @@ extern void cbe_enable_pm_interrupts(u32 cpu, u32 thread, u32 mask); | |||
91 | extern void cbe_disable_pm_interrupts(u32 cpu); | 91 | extern void cbe_disable_pm_interrupts(u32 cpu); |
92 | extern u32 cbe_query_pm_interrupts(u32 cpu); | 92 | extern u32 cbe_query_pm_interrupts(u32 cpu); |
93 | extern u32 cbe_clear_pm_interrupts(u32 cpu); | 93 | extern u32 cbe_clear_pm_interrupts(u32 cpu); |
94 | extern void cbe_sync_irq(int node); | ||
95 | |||
96 | /* Utility functions, macros */ | ||
97 | extern u32 cbe_get_hw_thread_id(int cpu); | ||
98 | |||
99 | #define cbe_cpu_to_node(cpu) ((cpu) >> 1) | ||
100 | |||
101 | #define CBE_COUNT_SUPERVISOR_MODE 0 | ||
102 | #define CBE_COUNT_HYPERVISOR_MODE 1 | ||
103 | #define CBE_COUNT_PROBLEM_MODE 2 | ||
104 | #define CBE_COUNT_ALL_MODES 3 | ||
105 | |||
106 | /* Macros for the pm07_control registers. */ | ||
107 | #define PM07_CTR_INPUT_MUX(x) (((x) & 0x3F) << 26) | ||
108 | #define PM07_CTR_INPUT_CONTROL(x) (((x) & 1) << 25) | ||
109 | #define PM07_CTR_POLARITY(x) (((x) & 1) << 24) | ||
110 | #define PM07_CTR_COUNT_CYCLES(x) (((x) & 1) << 23) | ||
111 | #define PM07_CTR_ENABLE(x) (((x) & 1) << 22) | ||
94 | 112 | ||
95 | #endif /* __ASM_CELL_PMU_H__ */ | 113 | #endif /* __ASM_CELL_PMU_H__ */ |
diff --git a/include/asm-powerpc/cputable.h b/include/asm-powerpc/cputable.h index a9a40149a7c0..762d15e48879 100644 --- a/include/asm-powerpc/cputable.h +++ b/include/asm-powerpc/cputable.h | |||
@@ -45,6 +45,7 @@ enum powerpc_oprofile_type { | |||
45 | PPC_OPROFILE_POWER4 = 2, | 45 | PPC_OPROFILE_POWER4 = 2, |
46 | PPC_OPROFILE_G4 = 3, | 46 | PPC_OPROFILE_G4 = 3, |
47 | PPC_OPROFILE_BOOKE = 4, | 47 | PPC_OPROFILE_BOOKE = 4, |
48 | PPC_OPROFILE_CELL = 5, | ||
48 | }; | 49 | }; |
49 | 50 | ||
50 | struct cpu_spec { | 51 | struct cpu_spec { |
diff --git a/include/asm-powerpc/oprofile_impl.h b/include/asm-powerpc/oprofile_impl.h index 07a10e590c1d..71043bf3641f 100644 --- a/include/asm-powerpc/oprofile_impl.h +++ b/include/asm-powerpc/oprofile_impl.h | |||
@@ -44,7 +44,9 @@ struct op_powerpc_model { | |||
44 | int num_counters); | 44 | int num_counters); |
45 | void (*cpu_setup) (struct op_counter_config *); | 45 | void (*cpu_setup) (struct op_counter_config *); |
46 | void (*start) (struct op_counter_config *); | 46 | void (*start) (struct op_counter_config *); |
47 | void (*global_start) (struct op_counter_config *); | ||
47 | void (*stop) (void); | 48 | void (*stop) (void); |
49 | void (*global_stop) (void); | ||
48 | void (*handle_interrupt) (struct pt_regs *, | 50 | void (*handle_interrupt) (struct pt_regs *, |
49 | struct op_counter_config *); | 51 | struct op_counter_config *); |
50 | int num_counters; | 52 | int num_counters; |
@@ -54,6 +56,7 @@ extern struct op_powerpc_model op_model_fsl_booke; | |||
54 | extern struct op_powerpc_model op_model_rs64; | 56 | extern struct op_powerpc_model op_model_rs64; |
55 | extern struct op_powerpc_model op_model_power4; | 57 | extern struct op_powerpc_model op_model_power4; |
56 | extern struct op_powerpc_model op_model_7450; | 58 | extern struct op_powerpc_model op_model_7450; |
59 | extern struct op_powerpc_model op_model_cell; | ||
57 | 60 | ||
58 | #ifndef CONFIG_FSL_BOOKE | 61 | #ifndef CONFIG_FSL_BOOKE |
59 | 62 | ||