kill the obsolete thread_group_cputime_free() helper
authorOleg Nesterov <oleg@redhat.com>
Wed, 26 May 2010 21:43:19 +0000 (14:43 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 27 May 2010 16:12:46 +0000 (09:12 -0700)
Kill the empty thread_group_cputime_free() helper.  It was needed to free
the per-cpu data which we no longer have.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Balbir Singh <balbir@linux.vnet.ibm.com>
Cc: Roland McGrath <roland@redhat.com>
Cc: Veaceslav Falico <vfalico@redhat.com>
Cc: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/sched.h
kernel/fork.c

index 2d1e1a1228ef9c97eb79c1f99cc7cd1c3bbfd26c..dd597d8013a87c780b6d53a96d7fb26188dcf97d 100644 (file)
@@ -2393,10 +2393,6 @@ static inline void thread_group_cputime_init(struct signal_struct *sig)
        spin_lock_init(&sig->cputimer.lock);
 }
 
-static inline void thread_group_cputime_free(struct signal_struct *sig)
-{
-}
-
 /*
  * Reevaluate whether the task has signals pending delivery.
  * Wake the task if so.
index e08e3012cd6b4e1cf90e4b025ec77c17612c247c..58f8611b1ac6cc8dbab656fff0e5f5add7e35294 100644 (file)
@@ -167,7 +167,6 @@ EXPORT_SYMBOL(free_task);
 
 static inline void free_signal_struct(struct signal_struct *sig)
 {
-       thread_group_cputime_free(sig);
        kmem_cache_free(signal_cachep, sig);
 }