summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKetut Putu Kumajaya <ketut.kumajaya@gmail.com>2013-09-20 14:57:27 +0700
committerMichael Gernoth <michael@gernoth.net>2015-11-07 04:53:56 -0800
commit5e398ba40879f6e3870d2e497ebb2b52514aa28e (patch)
tree82c9252cc19facaca4fdbbb47551d79eb2914252
parent98182c2b5765b4c9f03264bfedbd83b4a1b086d2 (diff)
downloadhardware_ti_omap4-5e398ba40879f6e3870d2e497ebb2b52514aa28e.zip
hardware_ti_omap4-5e398ba40879f6e3870d2e497ebb2b52514aa28e.tar.gz
hardware_ti_omap4-5e398ba40879f6e3870d2e497ebb2b52514aa28e.tar.bz2
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
-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;