Thread (8 messages) 8 messages, 2 authors, 2021-08-31

Re: [PATCH v14 3/3] cpufreq: mediatek-hw: Add support for CPUFREQ HW

From: Viresh Kumar <viresh.kumar@linaro.org>
Date: 2021-08-30 05:11:16
Also in: linux-arm-kernel, linux-devicetree, linux-mediatek, lkml

On 28-08-21, 23:01, Hector Yuan wrote:
+static int mtk_cpu_resources_init(struct platform_device *pdev,
+				  struct cpufreq_policy *policy,
+				  const u16 *offsets)
+{
+	struct mtk_cpufreq_data *data;
+	struct device *dev = &pdev->dev;
+	void __iomem *base;
+	int ret, i;
+	int index;
+
+	data = devm_kzalloc(dev, sizeof(*data), GFP_KERNEL);
+	if (!data)
+		return -ENOMEM;
+
+	index = of_perf_domain_get_sharing_cpumask(policy->cpu, "performance-domains",
+						   "#performance-domain-cells",
+						   policy->cpus);
You pass CPU here, while the first patch accepts index. Does this even work? Or
work just by chance ?

-- 
viresh
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help