diff options
author | Veaceslav Falico <vfalico@redhat.com> | 2010-03-10 15:23:03 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-03-12 15:52:39 -0800 |
commit | 93c59907c6f247d09239135caecf294a106a2ae0 (patch) | |
tree | f115d3763f7479ebbb9516c96bce68237edef860 /include/linux/sched.h | |
parent | 4dd66e69d472f0ba5355a2529364d0db9a18a02b (diff) | |
download | kernel_samsung_espresso10-93c59907c6f247d09239135caecf294a106a2ae0.zip kernel_samsung_espresso10-93c59907c6f247d09239135caecf294a106a2ae0.tar.gz kernel_samsung_espresso10-93c59907c6f247d09239135caecf294a106a2ae0.tar.bz2 |
copy_signal() cleanup: clean thread_group_cputime_init()
Remove unneeded initializations in thread_group_cputime_init() and in
posix_cpu_timers_init_group(). They are useless after kmem_cache_zalloc()
was used in copy_signal().
Signed-off-by: Veaceslav Falico <vfalico@redhat.com>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 46c6f8d..ca635c1 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -2391,9 +2391,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) |