PM / devfreq: events: extend events by type of counted data
[linux-2.6-microblaze.git] / include / linux / devfreq-event.h
index 29fc0dd..f14f17f 100644 (file)
@@ -78,14 +78,20 @@ struct devfreq_event_ops {
  * struct devfreq_event_desc - the descriptor of devfreq-event device
  *
  * @name       : the name of devfreq-event device.
+ * @event_type : the type of the event determined and used by driver
  * @driver_data        : the private data for devfreq-event driver.
  * @ops                : the operation to control devfreq-event device.
  *
  * Each devfreq-event device is described with a this structure.
  * This structure contains the various data for devfreq-event device.
+ * The event_type describes what is going to be counted in the register.
+ * It might choose to count e.g. read requests, write data in bytes, etc.
+ * The full supported list of types is present in specyfic header in:
+ * include/dt-bindings/pmu/.
  */
 struct devfreq_event_desc {
        const char *name;
+       u32 event_type;
        void *driver_data;
 
        const struct devfreq_event_ops *ops;