diff options
| author | Ingo Molnar <mingo@elte.hu> | 2008-09-10 14:05:45 +0200 | 
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2008-09-10 14:05:45 +0200 | 
| commit | 3ce9bcb583536c45a46c7302747029450e22279c (patch) | |
| tree | 7a4167189ffc6dc909151d1a5d040f9f0656a9f4 /fs/proc/array.c | |
| parent | 26fd10517e810dd59ea050b052de24a75ee6dc07 (diff) | |
| parent | f7d0b926ac8c8ec0c7a83ee69409bd2e6bb39f81 (diff) | |
Merge branch 'core/xen' into x86/xen
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 0d6eb33597c6..71c9be59c9c2 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)  { | 
