ipq806x: refresh 4.19 patches
[openwrt/staging/mkresin.git] / target / linux / ipq806x / patches-4.19 / 0046-cpufreq-qcom-independent-core-clocks.patch
index b3b3072bcbf8b558a443d967030a1ba622f3ff48..7743dd1c4f67718c7fa1654b3f0a0945ad238919 100644 (file)
@@ -28,7 +28,7 @@ Signed-off-by: Sricharan R <sricharan@codeaurora.org>
 
 --- a/drivers/cpufreq/cpufreq-dt.c
 +++ b/drivers/cpufreq/cpufreq-dt.c
-@@ -231,7 +231,10 @@ static int cpufreq_init(struct cpufreq_p
+@@ -239,7 +239,10 @@ static int cpufreq_init(struct cpufreq_p
        }
  
        if (fallback) {
@@ -40,9 +40,9 @@ Signed-off-by: Sricharan R <sricharan@codeaurora.org>
  
                /*
                 * OPP tables are initialized only for policy->cpu, do it for
-@@ -376,6 +379,8 @@ static int dt_cpufreq_probe(struct platf
-       if (data && data->have_governor_per_policy)
-               dt_cpufreq_driver.flags |= CPUFREQ_HAVE_GOVERNOR_PER_POLICY;
+@@ -359,6 +362,8 @@ static int dt_cpufreq_probe(struct platf
+                       dt_cpufreq_driver.suspend = data->suspend;
+       }
  
 +      dt_cpufreq_driver.driver_data = data;
 +
@@ -51,8 +51,8 @@ Signed-off-by: Sricharan R <sricharan@codeaurora.org>
                dev_err(&pdev->dev, "failed register driver: %d\n", ret);
 --- a/drivers/cpufreq/cpufreq-dt.h
 +++ b/drivers/cpufreq/cpufreq-dt.h
-@@ -13,6 +13,12 @@
- #include <linux/types.h>
+@@ -15,6 +15,12 @@
+ struct cpufreq_policy;
  
  struct cpufreq_dt_platform_data {
 +      /*
@@ -62,5 +62,5 @@ Signed-off-by: Sricharan R <sricharan@codeaurora.org>
 +       */
 +      bool independent_clocks;
        bool have_governor_per_policy;
- };
  
+       int (*suspend)(struct cpufreq_policy *policy);