From 41ae6c5ce6244f000ab10b8ca65f97ae206986d4 Mon Sep 17 00:00:00 2001 From: Anastasia Lyupa Date: Thu, 28 Feb 2013 19:17:46 +0400 Subject: [PATCH] optimization of pack_event_info remove memset() from pack_task_event_info() --- driver/storage.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/driver/storage.c b/driver/storage.c index 5f770ef..393eb17 100644 --- a/driver/storage.c +++ b/driver/storage.c @@ -1117,10 +1117,6 @@ void pack_task_event_info(struct task_struct *task, probe_id_t probe_id, struct cond *p_cond; struct event_tmpl *p_tmpl; - spin_lock_irqsave(&ec_spinlock, spinlock_flags); - memset(buf, 0, EVENT_MAX_SIZE); - spin_unlock_irqrestore(&ec_spinlock, spinlock_flags); - do_gettimeofday (&tv); if (probe_id == KS_PROBE_ID) { -- 2.7.4