projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64cd64e
)
cpufreq: tegra20: Remove unneeded check in tegra_cpu_init
author
Dmitry Osipenko
<
[email protected]
>
Fri, 18 May 2018 20:06:37 +0000
(23:06 +0300)
committer
Rafael J. Wysocki
<
[email protected]
>
Mon, 21 May 2018 11:44:24 +0000
(13:44 +0200)
Remove checking of the CPU number for consistency as it won't ever fail
unless there is a severe bug in the cpufreq core.
Signed-off-by: Dmitry Osipenko <
[email protected]
>
Acked-by: Viresh Kumar <
[email protected]
>
Acked-by: Thierry Reding <
[email protected]
>
Signed-off-by: Rafael J. Wysocki <
[email protected]
>
drivers/cpufreq/tegra20-cpufreq.c
patch
|
blob
|
history
diff --git
a/drivers/cpufreq/tegra20-cpufreq.c
b/drivers/cpufreq/tegra20-cpufreq.c
index ea186d3f0faffeefa02d8f1623bdb8c39e581909..df25e350c8e62b7217b3af82770aae31742b86c6 100644
(file)
--- a/
drivers/cpufreq/tegra20-cpufreq.c
+++ b/
drivers/cpufreq/tegra20-cpufreq.c
@@
-35,8
+35,6
@@
static struct cpufreq_frequency_table freq_table[] = {
{ .frequency = CPUFREQ_TABLE_END },
};
-#define NUM_CPUS 2
-
static struct clk *cpu_clk;
static struct clk *pll_x_clk;
static struct clk *pll_p_clk;
@@
-122,9
+120,6
@@
static int tegra_cpu_init(struct cpufreq_policy *policy)
{
int ret;
- if (policy->cpu >= NUM_CPUS)
- return -EINVAL;
-
clk_prepare_enable(cpu_clk);
/* FIXME: what's the actual transition time? */