Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

msm: kgsl: Collect a sample only if GPU is active

If the device is not in active state, collecting a sample is not
necessary and will cause frequent wake-ups, resulting in higher power

Change-Id: Icb4f82b1300cab3b4cc4ed17117a92725a5a11d4
Signed-off-by: Lynus Vaz <>
  • Loading branch information...
commit 045915561261cfdd985fe908af46247facc7674d 1 parent 5da2870
Lynus Vaz authored showp1984 committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 drivers/gpu/msm_adreno220/kgsl_pwrscale_idlestats.c
4 drivers/gpu/msm_adreno220/kgsl_pwrscale_idlestats.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2011, Code Aurora Forum. All rights reserved.
+/* Copyright (c) 2011-2012, Code Aurora Forum. All rights reserved.
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -73,7 +73,7 @@ static void idlestats_get_sample(struct msm_idle_stats_device *idledev,
/* If the GPU is asleep, don't wake it up - assume that we
are idle */
- if (!(device->state & (KGSL_STATE_SLEEP | KGSL_STATE_NAP))) {
+ if (device->state == KGSL_STATE_ACTIVE) {
device->ftbl->power_stats(device, &stats);
pulse->busy_start_time = pwr->time - stats.busy_time;
pulse->busy_interval = stats.busy_time;

0 comments on commit 0459155

Please sign in to comment.
Something went wrong with that request. Please try again.