summaryrefslogtreecommitdiffstats
path: root/kernel/sched_debug.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-11-18 08:06:21 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2008-11-18 08:06:21 -0800
commit8c60bfb0666952728b3be73ef9bc133d686aebba (patch)
treed532c12f7e414ee3ce6ed3bda912fa145e96de29 /kernel/sched_debug.c
parentb6584065ee833dcec20683be7fc25da3f2268cee (diff)
parent700018e0a77b4113172257fcdaa1c58e27a5074f (diff)
downloadblackbird-obmc-linux-8c60bfb0666952728b3be73ef9bc133d686aebba.tar.gz
blackbird-obmc-linux-8c60bfb0666952728b3be73ef9bc133d686aebba.zip
Merge branch 'sched-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'sched-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: cpuset: fix regression when failed to generate sched domains sched, signals: fix the racy usage of ->signal in account_group_xxx/run_posix_cpu_timers sched: fix kernel warning on /proc/sched_debug access sched: correct sched-rt-group.txt pathname in init/Kconfig
Diffstat (limited to 'kernel/sched_debug.c')
-rw-r--r--kernel/sched_debug.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/sched_debug.c b/kernel/sched_debug.c
index 48ecc51e7701..26ed8e3d1c15 100644
--- a/kernel/sched_debug.c
+++ b/kernel/sched_debug.c
@@ -423,10 +423,11 @@ void proc_sched_show_task(struct task_struct *p, struct seq_file *m)
#undef __P
{
+ unsigned int this_cpu = raw_smp_processor_id();
u64 t0, t1;
- t0 = sched_clock();
- t1 = sched_clock();
+ t0 = cpu_clock(this_cpu);
+ t1 = cpu_clock(this_cpu);
SEQ_printf(m, "%-35s:%21Ld\n",
"clock-delta", (long long)(t1-t0));
}
OpenPOWER on IntegriCloud