|
@@ -27,13 +27,22 @@ enum arm_pmu_type {
|
|
|
/*
|
|
|
* struct arm_pmu_platdata - ARM PMU platform data
|
|
|
*
|
|
|
- * @handle_irq: an optional handler which will be called from the interrupt and
|
|
|
- * passed the address of the low level handler, and can be used to implement
|
|
|
- * any platform specific handling before or after calling it.
|
|
|
+ * @handle_irq: an optional handler which will be called from the
|
|
|
+ * interrupt and passed the address of the low level handler,
|
|
|
+ * and can be used to implement any platform specific handling
|
|
|
+ * before or after calling it.
|
|
|
+ * @enable_irq: an optional handler which will be called after
|
|
|
+ * request_irq and be used to handle some platform specific
|
|
|
+ * irq enablement
|
|
|
+ * @disable_irq: an optional handler which will be called before
|
|
|
+ * free_irq and be used to handle some platform specific
|
|
|
+ * irq disablement
|
|
|
*/
|
|
|
struct arm_pmu_platdata {
|
|
|
irqreturn_t (*handle_irq)(int irq, void *dev,
|
|
|
irq_handler_t pmu_handler);
|
|
|
+ void (*enable_irq)(int irq);
|
|
|
+ void (*disable_irq)(int irq);
|
|
|
};
|
|
|
|
|
|
#ifdef CONFIG_CPU_HAS_PMU
|