diff options
author | Ansuel Smith <ansuelsmth@gmail.com> | 2020-01-26 04:27:46 +0100 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2020-03-03 23:38:23 +0100 |
commit | 71eb7b057b953e8ea40eae3c19db5c064f28b677 (patch) | |
tree | 2085e94bd14355332c4a88c79ea2a961e8540653 /target/linux/ipq806x/patches-5.4/0054-cpufreq-dt-Handle-OPP-voltage-adjust-events.patch | |
parent | 68b526e0a43d5c1a49604e8acc614809a5c4f4e3 (diff) | |
download | upstream-71eb7b057b953e8ea40eae3c19db5c064f28b677.tar.gz upstream-71eb7b057b953e8ea40eae3c19db5c064f28b677.tar.bz2 upstream-71eb7b057b953e8ea40eae3c19db5c064f28b677.zip |
ipq806x: refresh patches for kernel 5.4
Refresh patches and minor changes for new kernel support
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Diffstat (limited to 'target/linux/ipq806x/patches-5.4/0054-cpufreq-dt-Handle-OPP-voltage-adjust-events.patch')
-rw-r--r-- | target/linux/ipq806x/patches-5.4/0054-cpufreq-dt-Handle-OPP-voltage-adjust-events.patch | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/target/linux/ipq806x/patches-5.4/0054-cpufreq-dt-Handle-OPP-voltage-adjust-events.patch b/target/linux/ipq806x/patches-5.4/0054-cpufreq-dt-Handle-OPP-voltage-adjust-events.patch index 9620891194..2e9c101d94 100644 --- a/target/linux/ipq806x/patches-5.4/0054-cpufreq-dt-Handle-OPP-voltage-adjust-events.patch +++ b/target/linux/ipq806x/patches-5.4/0054-cpufreq-dt-Handle-OPP-voltage-adjust-events.patch @@ -25,9 +25,9 @@ Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org> --- a/drivers/cpufreq/cpufreq-dt.c +++ b/drivers/cpufreq/cpufreq-dt.c -@@ -32,6 +32,9 @@ struct private_data { +@@ -27,6 +27,9 @@ struct private_data { + struct opp_table *opp_table; struct device *cpu_dev; - struct thermal_cooling_device *cdev; const char *reg_name; + struct notifier_block opp_nb; + struct mutex lock; @@ -35,7 +35,7 @@ Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org> bool have_static_opps; }; -@@ -47,12 +50,15 @@ static int set_target(struct cpufreq_pol +@@ -42,12 +45,15 @@ static int set_target(struct cpufreq_pol unsigned long freq = policy->freq_table[index].frequency; int ret; @@ -51,7 +51,7 @@ Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org> return ret; } -@@ -95,6 +101,39 @@ node_put: +@@ -90,6 +96,39 @@ node_put: return name; } @@ -91,7 +91,7 @@ Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org> static int resources_available(void) { struct device *cpu_dev; -@@ -251,10 +290,14 @@ static int cpufreq_init(struct cpufreq_p +@@ -246,10 +285,14 @@ static int cpufreq_init(struct cpufreq_p __func__, ret); } @@ -107,7 +107,7 @@ Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org> } priv->cpu_dev = cpu_dev; -@@ -284,6 +327,8 @@ static int cpufreq_init(struct cpufreq_p +@@ -281,6 +324,8 @@ static int cpufreq_init(struct cpufreq_p out_free_cpufreq_table: dev_pm_opp_free_cpufreq_table(cpu_dev, &freq_table); |