diff options
| author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2008-10-09 21:31:58 +0100 | 
|---|---|---|
| committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-10-09 21:31:58 +0100 | 
| commit | 9e165acf1b9e37af7c0fa39399b43d0bd8600039 (patch) | |
| tree | 7ffdb0ad4c35ac9c19c4096b4f22ccc9b1eeefad /fs/proc/array.c | |
| parent | 6a4690c22f5da1eb1c898b61b6a80da52fbd976f (diff) | |
| parent | 791ccf2e4deeea8426b389fd0f5bb0e9167bb75d (diff) | |
Merge branch 'at91' into devel
Diffstat (limited to 'fs/proc/array.c')
| -rw-r--r-- | fs/proc/array.c | 59 | 
1 files changed, 0 insertions, 59 deletions
diff --git a/fs/proc/array.c b/fs/proc/array.c index 0d6eb33597c..71c9be59c9c 100644 --- a/fs/proc/array.c +++ b/fs/proc/array.c @@ -337,65 +337,6 @@ int proc_pid_status(struct seq_file *m, struct pid_namespace *ns,  	return 0;  } -/* - * Use precise platform statistics if available: - */ -#ifdef CONFIG_VIRT_CPU_ACCOUNTING -static cputime_t task_utime(struct task_struct *p) -{ -	return p->utime; -} - -static cputime_t task_stime(struct task_struct *p) -{ -	return p->stime; -} -#else -static cputime_t task_utime(struct task_struct *p) -{ -	clock_t utime = cputime_to_clock_t(p->utime), -		total = utime + cputime_to_clock_t(p->stime); -	u64 temp; - -	/* -	 * Use CFS's precise accounting: -	 */ -	temp = (u64)nsec_to_clock_t(p->se.sum_exec_runtime); - -	if (total) { -		temp *= utime; -		do_div(temp, total); -	} -	utime = (clock_t)temp; - -	p->prev_utime = max(p->prev_utime, clock_t_to_cputime(utime)); -	return p->prev_utime; -} - -static cputime_t task_stime(struct task_struct *p) -{ -	clock_t stime; - -	/* -	 * Use CFS's precise accounting. (we subtract utime from -	 * the total, to make sure the total observed by userspace -	 * grows monotonically - apps rely on that): -	 */ -	stime = nsec_to_clock_t(p->se.sum_exec_runtime) - -			cputime_to_clock_t(task_utime(p)); - -	if (stime >= 0) -		p->prev_stime = max(p->prev_stime, clock_t_to_cputime(stime)); - -	return p->prev_stime; -} -#endif - -static cputime_t task_gtime(struct task_struct *p) -{ -	return p->gtime; -} -  static int do_task_stat(struct seq_file *m, struct pid_namespace *ns,  			struct pid *pid, struct task_struct *task, int whole)  {  | 
