OpenWrt
/branches/18.06.1/target/linux/ipq806x/patches-4.14/0055-cpufreq-dt-Add-L2-frequency-scaling-support.patch |
@@ -11,7 +11,7 @@ |
|
--- a/drivers/cpufreq/cpufreq-dt.c |
+++ b/drivers/cpufreq/cpufreq-dt.c |
@@ -49,11 +49,41 @@ static int set_target(struct cpufreq_pol |
@@ -48,11 +48,41 @@ static int set_target(struct cpufreq_pol |
struct private_data *priv = policy->driver_data; |
int ret; |
unsigned long target_freq = policy->freq_table[index].frequency * 1000; |
@@ -54,7 +54,7 @@ |
mutex_unlock(&priv->lock); |
|
return ret; |
@@ -197,6 +227,8 @@ static int cpufreq_init(struct cpufreq_p |
@@ -196,6 +226,8 @@ static int cpufreq_init(struct cpufreq_p |
const char *name; |
int ret; |
struct srcu_notifier_head *opp_srcu_head; |
@@ -63,7 +63,7 @@ |
|
cpu_dev = get_cpu_device(policy->cpu); |
if (!cpu_dev) { |
@@ -305,6 +337,13 @@ static int cpufreq_init(struct cpufreq_p |
@@ -303,6 +335,13 @@ static int cpufreq_init(struct cpufreq_p |
|
policy->suspend_freq = dev_pm_opp_get_suspend_opp_freq(cpu_dev) / 1000; |
|