]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/devfreq/governor.h
Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf
[linux.git] / drivers / devfreq / governor.h
index bbe5ff9fcecfd8116a44e81901a2c4b8381b68c9..dc7533ccc3db7307f084735081e170b0964519a0 100644 (file)
@@ -31,6 +31,8 @@
  * @name:              Governor's name
  * @immutable:         Immutable flag for governor. If the value is 1,
  *                     this govenror is never changeable to other governor.
+ * @interrupt_driven:  Devfreq core won't schedule polling work for this
+ *                     governor if value is set to 1.
  * @get_target_freq:   Returns desired operating frequency for the device.
  *                     Basically, get_target_freq will run
  *                     devfreq_dev_profile.get_dev_status() to get the
@@ -49,6 +51,7 @@ struct devfreq_governor {
 
        const char name[DEVFREQ_NAME_LEN];
        const unsigned int immutable;
+       const unsigned int interrupt_driven;
        int (*get_target_freq)(struct devfreq *this, unsigned long *freq);
        int (*event_handler)(struct devfreq *devfreq,
                                unsigned int event, void *data);