]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/meta-ti-glsdk.git/blob - recipes-kernel/linux/linux-omap-2.6.39/pm/linux-omap-2.6.39-ti-pm-wip-cpufreq/0045-OMAP-CPUfreq-ensure-policy-is-fully-initialized.patch
conf/layer.conf: Document the operation on BBPATH correctly in the comment
[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-omap-2.6.39 / pm / linux-omap-2.6.39-ti-pm-wip-cpufreq / 0045-OMAP-CPUfreq-ensure-policy-is-fully-initialized.patch
1 From 56cee7bf023af728c952f692f4c24822392882a1 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 45/59] 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 cd09d4b..1b36664 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 __cpuinit omap_cpu_init(struct cpufreq_policy *policy)
19                                                         VERY_HI_RATE) / 1000;
20         }
21  
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;
28  
29 -- 
30 1.6.6.1