Messages in this thread Patch in this message | | | Date | Wed, 13 Jun 2012 19:59:23 +0800 | Subject | [patch] BFS 421: cleanup by removing __account_system_time | From | Hillf Danton <> |
| |
It is not used, so lets do cleanup.
--- a/kernel/sched/bfs.c Tue Jun 12 20:11:04 2012 +++ b/kernel/sched/bfs.c Wed Jun 13 19:55:24 2012 @@ -2601,28 +2601,6 @@ static void account_guest_time(struct ta } }
-/* - * Account system cpu time to a process and desired cpustat field - * @p: the process that the cpu time gets accounted to - * @cputime: the cpu time spent in kernel space since the last update - * @cputime_scaled: cputime scaled by cpu frequency - * @target_cputime64: pointer to cpustat field that has to be updated - */ -static inline -void __account_system_time(struct task_struct *p, cputime_t cputime, - cputime_t cputime_scaled, cputime64_t *target_cputime64) -{ - /* Add system time to process. */ - p->stime += (__force u64)cputime; - p->stimescaled += (__force u64)cputime_scaled; - account_group_system_time(p, cputime); - - /* Add system time to cpustat. */ - *target_cputime64 += (__force u64)cputime; - - /* Account for system time used */ - acct_update_integrals(p); -}
/* * Account system cpu time to a process. --
| |