diff options
author | Xinyu Chen <xinyu.chen@freescale.com> | 2012-10-24 16:23:45 +0800 |
---|---|---|
committer | Xinyu Chen <xinyu.chen@freescale.com> | 2012-10-24 16:23:45 +0800 |
commit | 54c7345a50451f9315391f1c786401f94ada7d0f (patch) | |
tree | aa3563fcf47e0fe1695998271f445ee17a6366e7 | |
parent | db14a8b51a475df09731b04c68e937704fd63c7c (diff) |
Revert "ENGR00221197-2 Update gpu driver to check Soc temperature"
This reverts commit 60bad509d7060775a370d70e843ab12f6b50c5c5.
-rw-r--r-- | drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_command.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_command.c b/drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_command.c index e05a143f41c3..8cf0509cfd92 100644 --- a/drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_command.c +++ b/drivers/mxc/gpu-viv/hal/kernel/gc_hal_kernel_command.c @@ -30,9 +30,6 @@ #define _GC_OBJ_ZONE gcvZONE_COMMAND -#if gcdENABLE_FSCALE_VAL_ADJUST -extern int thermal_hot; -#endif /******************************************************************************\ ********************************* Support Code ********************************* \******************************************************************************/ @@ -1083,24 +1080,6 @@ gckCOMMAND_Commit( /* Extract the gckHARDWARE and gckEVENT objects. */ hardware = Command->kernel->hardware; -#if gcdENABLE_FSCALE_VAL_ADJUST - if(hardware->core == gcvCORE_MAJOR){ - static gctUINT orgFscale,minFscale,maxFscale; - static gctBOOL bAlreadyTooHot = gcvFALSE; - if((thermal_hot > 0) && (!bAlreadyTooHot)) { - gckHARDWARE_GetFscaleValue(hardware,&orgFscale,&minFscale, &maxFscale); - gckHARDWARE_SetFscaleValue(hardware, minFscale); - bAlreadyTooHot = gcvTRUE; - gckOS_Print("System is too hot. GPU3D will work at %d/64 clock.\n", minFscale); - } else if((!(thermal_hot > 0)) && bAlreadyTooHot) { - gckHARDWARE_SetFscaleValue(hardware, orgFscale); - gckOS_Print("Hot alarm is canceled. GPU3D clock will return to %d/64\n", orgFscale); - bAlreadyTooHot = gcvFALSE; - } - - } -#endif - /* Check wehther we need to copy the structures or not. */ gcmkONERROR(gckOS_QueryNeedCopy(Command->os, ProcessID, &needCopy)); |