diff options
author | Rabin Vincent <rabin.vincent@stericsson.com> | 2011-09-06 09:28:06 +0530 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@stericsson.com> | 2011-09-19 16:05:57 +0200 |
commit | e15736ebcb754289b9217bb84b2c7cbce1a71f9b (patch) | |
tree | 3a63576380a2b50cccbaeaf2f190074ad5a43b83 /drivers/cpufreq | |
parent | 78f649185bf0569d4238c5553395647a31b2b83b (diff) |
cpufreq: fix 5500 build
Change-Id: I0ebddd350374a079d9862b4cb8c55fd9cfa2cc91
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r-- | drivers/cpufreq/cpufreq_ondemand.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/cpufreq/cpufreq_ondemand.c b/drivers/cpufreq/cpufreq_ondemand.c index bcef88a89b0..71ea832d8b7 100644 --- a/drivers/cpufreq/cpufreq_ondemand.c +++ b/drivers/cpufreq/cpufreq_ondemand.c @@ -391,8 +391,10 @@ static struct attribute_group dbs_attr_group = { }; /*** delete after deprecation time ***/ +#ifdef CONFIG_UX500_SOC_DB8500 extern bool wlan_mode_on; extern bool usb_mode_on; +#endif /************************** sysfs end ************************/ @@ -498,9 +500,12 @@ static void dbs_check_cpu(struct cpu_dbs_info_s *this_dbs_info) } /* Check for frequency increase */ - if ((max_load_freq > dbs_tuners_ins.up_threshold * policy->cur) || + if ((max_load_freq > dbs_tuners_ins.up_threshold * policy->cur) +#ifdef CONFIG_UX500_SOC_DB8500 /* A work around for wlan and usb performance issues */ - (usb_mode_on || wlan_mode_on)) { + || (usb_mode_on || wlan_mode_on) +#endif + ) { /* If switching to max speed, apply sampling_down_factor */ if (policy->cur < policy->max) this_dbs_info->rate_mult = |