]> git.baikalelectronics.ru Git - kernel.git/commit
sched, cputime: Cleanups related to task_times()
authorHidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Wed, 2 Dec 2009 08:26:47 +0000 (17:26 +0900)
committerIngo Molnar <mingo@elte.hu>
Wed, 2 Dec 2009 16:32:39 +0000 (17:32 +0100)
commit46b1e59e6a071af2ac1dcd30d1ed487172bd95ed
tree7665ebdafcef46c310055021562e6629f59eafd5
parent86bc447c2618a0b510711c39ebc1da55af26c9d6
sched, cputime: Cleanups related to task_times()

- Remove if({u,s}t)s because no one call it with NULL now.
- Use cputime_{add,sub}().
- Add ifndef-endif for prev_{u,s}time since they are used
  only when !VIRT_CPU_ACCOUNTING.

Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Spencer Candland <spencer@bluehost.com>
Cc: Americo Wang <xiyou.wangcong@gmail.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Balbir Singh <balbir@in.ibm.com>
Cc: Stanislaw Gruszka <sgruszka@redhat.com>
LKML-Reference: <4B1624C7.7040302@jp.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/sched.h
kernel/fork.c
kernel/sched.c