Merge "hwc: Disable idle invalidation for command mode panels"

This commit is contained in:
Linux Build Service Account
2013-08-16 17:12:11 -07:00
committed by Gerrit - the friendly Code Review server

View File

@@ -123,20 +123,24 @@ bool MDPComp::init(hwc_context_t *ctx) {
sMaxPipesPerMixer = min(val, MAX_PIPES_PER_MIXER); sMaxPipesPerMixer = min(val, MAX_PIPES_PER_MIXER);
} }
long idle_timeout = DEFAULT_IDLE_TIME; if(ctx->mMDP.panel != MIPI_CMD_PANEL) {
if(property_get("debug.mdpcomp.idletime", property, NULL) > 0) { // Idle invalidation is not necessary on command mode panels
if(atoi(property) != 0) long idle_timeout = DEFAULT_IDLE_TIME;
idle_timeout = atoi(property); if(property_get("debug.mdpcomp.idletime", property, NULL) > 0) {
} if(atoi(property) != 0)
idle_timeout = atoi(property);
}
//create Idle Invalidator only when not disabled through property //create Idle Invalidator only when not disabled through property
if(idle_timeout != -1) if(idle_timeout != -1)
idleInvalidator = IdleInvalidator::getInstance(); idleInvalidator = IdleInvalidator::getInstance();
if(idleInvalidator == NULL) { if(idleInvalidator == NULL) {
ALOGE("%s: failed to instantiate idleInvalidator object", __FUNCTION__); ALOGE("%s: failed to instantiate idleInvalidator object",
} else { __FUNCTION__);
idleInvalidator->init(timeout_handler, ctx, idle_timeout); } else {
idleInvalidator->init(timeout_handler, ctx, idle_timeout);
}
} }
return true; return true;
} }