summaryrefslogtreecommitdiffstats
path: root/pvr-source
diff options
context:
space:
mode:
authorKetut Putu Kumajaya <ketut.kumajaya@gmail.com>2013-09-20 14:57:27 +0700
committerAndreas Blaesius <skate4life@gmx.de>2018-01-29 19:32:44 +0100
commit1703211dbf4c1632ebdf7a036b78aaa01e05e827 (patch)
treed23428ef58b74b9446c9b79de440677a884cc143 /pvr-source
parent6af5b6e74ab94a8c2e65122e102247002bc812e2 (diff)
downloadandroid_hardware_ti_omap4-1703211dbf4c1632ebdf7a036b78aaa01e05e827.tar.gz
android_hardware_ti_omap4-1703211dbf4c1632ebdf7a036b78aaa01e05e827.tar.bz2
android_hardware_ti_omap4-1703211dbf4c1632ebdf7a036b78aaa01e05e827.zip
sgxfreq: limit frequency to default on boot
If extra GPU frequencies available (because of overclock), we have to limit it to default value on boot. We can set to higher value later Change-Id: Ibd6962a71fab7790f3dadfe2a4b31b849b9c3424
Diffstat (limited to 'pvr-source')
-rw-r--r--pvr-source/services4/system/omap4/sgxfreq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pvr-source/services4/system/omap4/sgxfreq.c b/pvr-source/services4/system/omap4/sgxfreq.c
index 65543a5..56123ae 100644
--- a/pvr-source/services4/system/omap4/sgxfreq.c
+++ b/pvr-source/services4/system/omap4/sgxfreq.c
@@ -334,7 +334,7 @@ int sgxfreq_init(struct device *dev)
rcu_read_unlock();
mutex_init(&sfd.freq_mutex);
- sfd.freq_limit = sfd.freq_list[sfd.freq_cnt - 1];
+ sfd.freq_limit = SYS_SGX_CLOCK_SPEED;
sgxfreq_set_freq_request(sfd.freq_list[sfd.freq_cnt - 1]);
sfd.sgx_data.clk_on = false;
sfd.sgx_data.active = false;