diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2017-02-27 23:37:19 -0800 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-02-27 23:37:19 -0800 |
| commit | c3b7b9dbd6e14e22ce1f2fe6203cacb464d1d2be (patch) | |
| tree | 7276de68bdab3f0d6cc24f4a8ae449c83c6194b6 /include/linux | |
| parent | 431f1938d90bd5195fb000239a35c43e159edb7c (diff) | |
| parent | 411b19b48e2cce2434624360a4a6d420a1419466 (diff) | |
Merge "msm: kgsl: Add placeholders for KGSL power limit functions"
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/msm_kgsl.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/linux/msm_kgsl.h b/include/linux/msm_kgsl.h index 68cfe76e8652..5991485cdea4 100644 --- a/include/linux/msm_kgsl.h +++ b/include/linux/msm_kgsl.h @@ -3,11 +3,32 @@ #include <uapi/linux/msm_kgsl.h> +#ifdef CONFIG_QCOM_KGSL /* Limits mitigations APIs */ void *kgsl_pwr_limits_add(enum kgsl_deviceid id); void kgsl_pwr_limits_del(void *limit); int kgsl_pwr_limits_set_freq(void *limit, unsigned int freq); void kgsl_pwr_limits_set_default(void *limit); unsigned int kgsl_pwr_limits_get_freq(enum kgsl_deviceid id); +#else +static inline void *kgsl_pwr_limits_add(enum kgsl_deviceid id) +{ + return NULL; +} + +static inline void kgsl_pwr_limits_del(void *limit) { } + +static inline int kgsl_pwr_limits_set_freq(void *limit, unsigned int freq) +{ + return -EINVAL; +} + +static inline void kgsl_pwr_limits_set_default(void *limit) { } + +static inline unsigned int kgsl_pwr_limits_get_freq(enum kgsl_deviceid id) +{ + return 0; +} +#endif #endif /* _MSM_KGSL_H */ |
