mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 3/4] copy_signal cleanup: clean thread_group_cputime_init()
@ 2009-12-01 22:12 Veaceslav Falico
  0 siblings, 0 replies; only message in thread
From: Veaceslav Falico @ 2009-12-01 22:12 UTC (permalink / raw)
  To: linux-kernel
  Cc: Greg Kroah-Hartman, Al Viro, Miloslav Trmac, James Morris,
	Alan Cox, Ingo Molnar, Peter Zijlstra, Andrew Morton,
	Balbir Singh, Alexey Dobriyan, Heiko Carstens, Renaud Lottiaux,
	Louis Rilling, David Howells, Oleg Nesterov

Remove unneeded initializations in thread_group_cputime_init().

Signed-off-by: Veaceslav Falico <vfalico@redhat.com>
---

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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-12-01 22:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-01 22:12 [PATCH 3/4] copy_signal cleanup: clean thread_group_cputime_init() Veaceslav Falico

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome