[PATCH 3/4] copy_signal cleanup: clean thread_group_cputime_init()

From: Veaceslav Falico
Date: Tue Dec 01 2009 - 17:13:57 EST


Remove unneeded initializations in thread_group_cputime_init().

Signed-off-by: Veaceslav Falico <vfalico@xxxxxxxxxx>
---

diff --git a/include/linux/sched.h b/include/linux/sched.h
index 75e6e60..4778ef7 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -2419,9 +2419,7 @@ void thread_group_cputimer(struct task_struct *tsk, struct task_cputime *times);

static inline void thread_group_cputime_init(struct signal_struct *sig)
{
- sig->cputimer.cputime = INIT_CPUTIME;
spin_lock_init(&sig->cputimer.lock);
- sig->cputimer.running = 0;
}

static inline void thread_group_cputime_free(struct signal_struct *sig)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/