projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e5be95
)
rk30:sdk: add GPU frequency limit between 133MHz to 400MHz
author
chenxing
<chenxing@rock-chips.com>
Wed, 4 Jul 2012 09:23:30 +0000
(17:23 +0800)
committer
chenxing
<chenxing@rock-chips.com>
Wed, 4 Jul 2012 09:23:30 +0000
(17:23 +0800)
arch/arm/mach-rk30/cpufreq.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-rk30/cpufreq.c
b/arch/arm/mach-rk30/cpufreq.c
index b352b1f9f7a51ad3d5b0fc5843016b2cc5444b0d..f7a1c87c21b7213d42e81dc8962d9bc5d76a05da 100755
(executable)
--- a/
arch/arm/mach-rk30/cpufreq.c
+++ b/
arch/arm/mach-rk30/cpufreq.c
@@
-256,6
+256,9
@@
static int rk30_cpu_init(struct cpufreq_policy *policy)
}
clk_enable_dvfs(cpu_clk);
+ /* Limit gpu frequency between 133M to 400M */
+ dvfs_clk_enable_limit(gpu_clk, 133000000, 400000000);
+
freq_wq = create_singlethread_workqueue("rk30_cpufreqd");
#ifdef CONFIG_RK30_CPU_FREQ_LIMIT_BY_TEMP
if (rk30_cpufreq_is_ondemand_policy(policy)) {