cpufreq: vexpress-spc: find and skip duplicates when merging frequencies
authorSudeep Holla <sudeep.holla@arm.com>
Wed, 23 Oct 2019 12:18:51 +0000 (13:18 +0100)
committerViresh Kumar <viresh.kumar@linaro.org>
Thu, 24 Oct 2019 03:07:47 +0000 (08:37 +0530)
commite32beb064105e13d4db0b03b4da7142065db1b34
tree460b5ab89aea2e6999f76215050b7f6825d148d9
parent4a6e135238798144ca8a2eab65018521c66240da
cpufreq: vexpress-spc: find and skip duplicates when merging frequencies

Currently the cpufreq core aborts the validation and return error
immediately when it encounter duplicate frequency table entries.
This change was introduced long back since commit da0c6dc00c69
("cpufreq: Handle sorted frequency tables more efficiently").

However, this missed the testing with modified firmware for long time.
Inorder to make it work with default settings, we need to ensure the
merged table for bL switcher contains no duplicates. Find the duplicates
and skip them when merging the frequenct tables of A15 and A7 clusters.

Cc: Viresh Kumar <viresh.kumar@linaro.org>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/vexpress-spc-cpufreq.c