blob: a84d14c2aa52374f663364e36f61e5d212a43888 [file] [log] [blame]
#ifndef MSM_ADRENO_DEVFREQ_H
#define MSM_ADRENO_DEVFREQ_H
#include <linux/notifier.h>
#define ADRENO_DEVFREQ_NOTIFY_SUBMIT 1
#define ADRENO_DEVFREQ_NOTIFY_RETIRE 2
#define ADRENO_DEVFREQ_NOTIFY_IDLE 3
struct device;
int kgsl_devfreq_add_notifier(struct device *, struct notifier_block *);
int kgsl_devfreq_del_notifier(struct device *, struct notifier_block *);
/* same as KGSL_MAX_PWRLEVELS */
#define MSM_ADRENO_MAX_PWRLEVELS 10
struct devfreq_msm_adreno_tz_data {
struct notifier_block nb;
struct {
s64 total_time;
s64 busy_time;
} bin;
unsigned int device_id;
};
#endif