From 46b115e1f92abef87607930b1c22546c322777df Mon Sep 17 00:00:00 2001 From: Imre Deak Date: Wed, 11 Jan 2012 16:07:49 +0200 Subject: [PATCH] gfx: pvr: optimize clearing sync counter trace info struct Clearing this struct is necessary to suppress tracing for a given sync counter. But for this we don't need to bzero the whole sync counter info struct it's enough to set the address to zero. Signed-off-by: Imre Deak Reviewed-by: Pauli Nieminen Tested-by: Pauli Nieminen Signed-off-by: Kirill A. Shutemov --- drivers/staging/mrst/pvr/pvr_trace_cmd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/mrst/pvr/pvr_trace_cmd.h b/drivers/staging/mrst/pvr/pvr_trace_cmd.h index 5a92255..89eb960 100644 --- a/drivers/staging/mrst/pvr/pvr_trace_cmd.h +++ b/drivers/staging/mrst/pvr/pvr_trace_cmd.h @@ -110,7 +110,7 @@ static inline void pvr_trcmd_set_data(unsigned long *a, unsigned long val) static inline void pvr_trcmd_clear_syn(struct pvr_trcmd_syn *ts) { - memset(ts, 0, sizeof(*ts)); + ts->addr = 0; } void pvr_trcmd_check_syn_completions(int type); -- 2.7.4