diff options
author | Jose Rivera <German.Rivera@freescale.com> | 2014-05-23 02:22:08 (GMT) |
---|---|---|
committer | Jose Rivera <German.Rivera@freescale.com> | 2014-05-23 02:22:53 (GMT) |
commit | 65929acb18a0c044d987c4b2a9e345e5c1e2a3e8 (patch) | |
tree | 95c96157c9e42bda88cacb8a67d1a2adbb64515c /drivers/cpufreq | |
parent | 943e3ef93c265b5f4f8528c75edb2bca95f802cd (diff) | |
download | linux-fsl-qoriq-65929acb18a0c044d987c4b2a9e345e5c1e2a3e8.tar.xz |
Revert "cpufreq/powerpc: Fix overflow on 32-bit OS and rounding errors"
This reverts commit a2b468f094846bca51c49c28c071accb46a18daa.
Change-Id: If862fe836cf057ec254aab4c45c2091071cfd996
Reviewed-on: http://git.am.freescale.net:8181/12827
Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
Tested-by: Jose Rivera <German.Rivera@freescale.com>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r-- | drivers/cpufreq/ppc-corenet-cpufreq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/ppc-corenet-cpufreq.c b/drivers/cpufreq/ppc-corenet-cpufreq.c index 4937dd3..79173af 100644 --- a/drivers/cpufreq/ppc-corenet-cpufreq.c +++ b/drivers/cpufreq/ppc-corenet-cpufreq.c @@ -217,7 +217,7 @@ static int corenet_cpufreq_cpu_init(struct cpufreq_policy *policy) per_cpu(cpu_data, i) = data; policy->cpuinfo.transition_latency = - 12U * (NSEC_PER_SEC / fsl_get_sys_freq() + 1); + (12 * NSEC_PER_SEC) / fsl_get_sys_freq(); policy->cur = corenet_cpufreq_get_speed(policy->cpu); cpufreq_frequency_table_get_attr(table, cpu); |