summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pvr-source/services4/srvkm/devices/sgx/sgxpower.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pvr-source/services4/srvkm/devices/sgx/sgxpower.c b/pvr-source/services4/srvkm/devices/sgx/sgxpower.c
index 034deab..a8fc487 100644
--- a/pvr-source/services4/srvkm/devices/sgx/sgxpower.c
+++ b/pvr-source/services4/srvkm/devices/sgx/sgxpower.c
@@ -333,8 +333,6 @@ PVRSRV_ERROR SGXPrePowerState (IMG_HANDLE hDevHandle,
PDUMPCOMMENT("SGX idle request");
}
- powering_down = 1;
-
sCommand.ui32Data[1] = ui32PowerCmd;
eError = SGXScheduleCCBCommand(psDeviceNode, SGXMKIF_CMD_POWER, &sCommand, KERNEL_ID, 0, IMG_NULL, IMG_FALSE);
@@ -418,6 +416,8 @@ PVRSRV_ERROR SGXPrePowerState (IMG_HANDLE hDevHandle,
"Wait for SGX master clock gating (2)");
#endif /* SGX_FEATURE_MP */
+ powering_down = 1;
+
if (eNewPowerState == PVRSRV_DEV_POWER_STATE_OFF)
{
/* Finally, de-initialise some registers. */