msm: kgsl: Remove last_expired_ctxt_id

last_expired_ctxt_id was used briefly for per context timestamps and now
can be removed as it is no longer used.

Change-Id: I51d3947fe6da366824d1b947ae3448bee3518477
Signed-off-by: Carter Cooper <ccooper@codeaurora.org>
This commit is contained in:
Carter Cooper 2012-06-05 11:18:34 -06:00 committed by Stephen Boyd
parent 4dd9b6ae67
commit 05dc810ce7
3 changed files with 1 additions and 6 deletions

View file

@ -1719,7 +1719,6 @@ static void a2xx_cp_intrcallback(struct kgsl_device *device)
kgsl_sharedmem_writel(&rb->device->memstore,
KGSL_MEMSTORE_OFFSET(context_id,
ts_cmp_enable), 0);
device->last_expired_ctxt_id = context_id;
wmb();
}
KGSL_CMD_WARN(rb->device, "ringbuffer rb interrupt\n");

View file

@ -427,8 +427,6 @@ void kgsl_timestamp_expired(struct work_struct *work)
kfree(event);
}
device->last_expired_ctxt_id = KGSL_CONTEXT_INVALID;
mutex_unlock(&device->mutex);
}
EXPORT_SYMBOL(kgsl_timestamp_expired);

View file

@ -158,7 +158,6 @@ struct kgsl_device {
uint32_t state;
uint32_t requested_state;
unsigned int last_expired_ctxt_id;
unsigned int active_cnt;
struct completion suspend_gate;
@ -216,8 +215,7 @@ void kgsl_timestamp_expired(struct work_struct *work);
.mutex = __MUTEX_INITIALIZER((_dev).mutex),\
.state = KGSL_STATE_INIT,\
.ver_major = DRIVER_VERSION_MAJOR,\
.ver_minor = DRIVER_VERSION_MINOR,\
.last_expired_ctxt_id = KGSL_CONTEXT_INVALID
.ver_minor = DRIVER_VERSION_MINOR
struct kgsl_context {
struct kref refcount;