From: Imre Deak Date: Wed, 11 Jan 2012 14:07:49 +0000 (+0200) Subject: gfx: pvr: optimize clearing sync counter trace info struct X-Git-Tag: 2.1b_release~359 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=46b115e1f92abef87607930b1c22546c322777df;p=kernel%2Fkernel-mfld-blackbay.git 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 --- 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);