[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-omap / dvfs / 0003-OMAP-CPUfreq-ensure-policy-is-fully-initialized.patch
1 From 647691beb64312327646a84dc161faf35935e7f7 Mon Sep 17 00:00:00 2001
2 From: Kevin Hilman <khilman@deeprootsystems.com>
3 Date: Wed, 11 Aug 2010 17:05:38 -0700
4 Subject: [PATCH 03/20] OMAP: CPUfreq: ensure policy is fully initialized
6 Ensure policy min/max/cur values are initialized when OMAP
7 CPUfreq driver starts.
9 Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
10 ---
11 arch/arm/plat-omap/cpu-omap.c | 4 ++++
12 1 files changed, 4 insertions(+), 0 deletions(-)
14 diff --git a/arch/arm/plat-omap/cpu-omap.c b/arch/arm/plat-omap/cpu-omap.c
15 index 79d2155..bfa063b 100644
16 --- a/arch/arm/plat-omap/cpu-omap.c
17 +++ b/arch/arm/plat-omap/cpu-omap.c
18 @@ -126,6 +126,10 @@ static int __init omap_cpu_init(struct cpufreq_policy *policy)
19 VERY_HI_RATE) / 1000;
20 }
22 + policy->min = policy->cpuinfo.min_freq;
23 + policy->max = policy->cpuinfo.max_freq;
24 + policy->cur = omap_getspeed(0);
25 +
26 /* FIXME: what's the actual transition time? */
27 policy->cpuinfo.transition_latency = 300 * 1000;
29 --
30 1.6.6.1