diff options
Diffstat (limited to 'target/linux/ipq806x/patches-5.15/098-1-cpufreq-add-Krait-dedicated-scaling-driver.patch')
-rw-r--r-- | target/linux/ipq806x/patches-5.15/098-1-cpufreq-add-Krait-dedicated-scaling-driver.patch | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/target/linux/ipq806x/patches-5.15/098-1-cpufreq-add-Krait-dedicated-scaling-driver.patch b/target/linux/ipq806x/patches-5.15/098-1-cpufreq-add-Krait-dedicated-scaling-driver.patch index c0356ec9b9..a3896f2fc2 100644 --- a/target/linux/ipq806x/patches-5.15/098-1-cpufreq-add-Krait-dedicated-scaling-driver.patch +++ b/target/linux/ipq806x/patches-5.15/098-1-cpufreq-add-Krait-dedicated-scaling-driver.patch @@ -75,7 +75,7 @@ Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> ################################################################################## --- /dev/null +++ b/drivers/cpufreq/qcom-cpufreq-krait.c -@@ -0,0 +1,629 @@ +@@ -0,0 +1,635 @@ +// SPDX-License-Identifier: GPL-2.0 + +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt @@ -448,6 +448,11 @@ Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> + return 0; +} + ++static struct freq_attr *krait_cpufreq_attr[] = { ++ &cpufreq_freq_attr_scaling_available_freqs, ++ NULL, ++}; ++ +static struct cpufreq_driver krait_cpufreq_driver = { + .flags = CPUFREQ_NEED_INITIAL_FREQ_CHECK | + CPUFREQ_IS_COOLING_DEV, @@ -459,6 +464,7 @@ Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com> + .online = cpufreq_online, + .offline = cpufreq_offline, + .name = "krait-cpufreq", ++ .attr = krait_cpufreq_attr, + .suspend = cpufreq_generic_suspend, +}; + |