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,6 +123,8 @@ bool MDPComp::init(hwc_context_t *ctx) {
sMaxPipesPerMixer = min(val, MAX_PIPES_PER_MIXER);
}
if(ctx->mMDP.panel != MIPI_CMD_PANEL) {
// Idle invalidation is not necessary on command mode panels
long idle_timeout = DEFAULT_IDLE_TIME;
if(property_get("debug.mdpcomp.idletime", property, NULL) > 0) {
if(atoi(property) != 0)
@@ -134,10 +136,12 @@ bool MDPComp::init(hwc_context_t *ctx) {
idleInvalidator = IdleInvalidator::getInstance();
if(idleInvalidator == NULL) {
ALOGE("%s: failed to instantiate idleInvalidator object", __FUNCTION__);
ALOGE("%s: failed to instantiate idleInvalidator object",
__FUNCTION__);
} else {
idleInvalidator->init(timeout_handler, ctx, idle_timeout);
}
}
return true;
}