Skip to content

Commit

Permalink
ipq806x: add missing scaling_available_frequencies for dedicated cpufreq
Browse files Browse the repository at this point in the history
Add missing scaling_available_frequencies sysfs entry for dedicated
cpufreq driver.
This sysfs entry is not standard and each cpufreq driver needs to
provide it and declare it in the cpufreq driver struct attr.

Fixes: 5dbbefc ("ipq806x: introduce dedicated krait cpufreq")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
  • Loading branch information
Ansuel authored and aiamadeus committed Aug 23, 2022
1 parent a36ce80 commit b42a41a
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
##################################################################################
--- /dev/null
+++ b/drivers/cpufreq/qcom-cpufreq-krait.c
@@ -0,0 +1,603 @@
@@ -0,0 +1,609 @@
+// SPDX-License-Identifier: GPL-2.0
+
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
Expand Down Expand Up @@ -435,6 +435,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_STICKY | CPUFREQ_NEED_INITIAL_FREQ_CHECK |
+ CPUFREQ_IS_COOLING_DEV,
Expand All @@ -446,6 +451,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,
+};
+
Expand Down

0 comments on commit b42a41a

Please sign in to comment.