All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] cpufreq: vexpress-spc: use macros instead of hardcoded values for cluster ids
@ 2019-10-23 11:08 Sudeep Holla
  2019-10-23 11:08 ` [PATCH 2/2] cpufreq: vexpress-spc: find and skip duplicates when merging frequencies Sudeep Holla
  2019-10-24  3:11 ` [PATCH 1/2] cpufreq: vexpress-spc: use macros instead of hardcoded values for cluster ids Viresh Kumar
  0 siblings, 2 replies; 6+ messages in thread
From: Sudeep Holla @ 2019-10-23 11:08 UTC (permalink / raw)
  To: Viresh Kumar, Rafael J . Wysocki; +Cc: Sudeep Holla, linux-pm, linux-kernel

A15 and A7 cluster identifiers are fixed to 0 and 1 respectively. There are
macros for the same and used in most of the places except this instance.

Lets use macros instead of hardcoded values for cluster ids even here.

Cc: Viresh Kumar <viresh.kumar@linaro.org>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
---
 drivers/cpufreq/vexpress-spc-cpufreq.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/cpufreq/vexpress-spc-cpufreq.c b/drivers/cpufreq/vexpress-spc-cpufreq.c
index 3259498d7eaa..093ef8d3a8d4 100644
--- a/drivers/cpufreq/vexpress-spc-cpufreq.c
+++ b/drivers/cpufreq/vexpress-spc-cpufreq.c
@@ -380,8 +380,9 @@ static int get_cluster_clk_and_freq_table(struct device *cpu_dev,
 		goto put_clusters;
 
 	/* Assuming 2 cluster, set clk_big_min and clk_little_max */
-	clk_big_min = get_table_min(freq_table[0]);
-	clk_little_max = VIRT_FREQ(1, get_table_max(freq_table[1]));
+	clk_big_min = get_table_min(freq_table[A15_CLUSTER]);
+	clk_little_max = VIRT_FREQ(A7_CLUSTER,
+				   get_table_max(freq_table[A7_CLUSTER]));
 
 	return 0;
 
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-10-24  3:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-23 11:08 [PATCH 1/2] cpufreq: vexpress-spc: use macros instead of hardcoded values for cluster ids Sudeep Holla
2019-10-23 11:08 ` [PATCH 2/2] cpufreq: vexpress-spc: find and skip duplicates when merging frequencies Sudeep Holla
2019-10-23 11:25   ` Viresh Kumar
2019-10-23 11:38     ` Sudeep Holla
2019-10-23 12:18   ` [PATCH v2 " Sudeep Holla
2019-10-24  3:11 ` [PATCH 1/2] cpufreq: vexpress-spc: use macros instead of hardcoded values for cluster ids Viresh Kumar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.