2009-12-01 22:13:47

by Veaceslav Falico

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

Remove unneeded initializations in thread_group_cputime_init().

Signed-off-by: Veaceslav Falico <[email protected]>
---

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)