diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-03-06 10:44:14 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-03-06 10:45:01 -0500 |
commit | f0ef03985130287c6c84ebe69416cf790e6cc00e (patch) | |
tree | 3ecb04cc4d82e5fc3ae5f1747e6da172ae8cbcb7 /kernel/sched.c | |
parent | 16097439703bcd38e9fe5608c12add6dacb825ea (diff) | |
parent | 31bbed527e7039203920c51c9fb48c27aed0820c (diff) |
Merge branch 'x86/core' into tracing/textedit
Conflicts:
arch/x86/Kconfig
block/blktrace.c
kernel/irq/handle.c
Semantic conflict:
kernel/trace/blktrace.c
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index e1f676e20119..7299083e69e7 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -6009,12 +6009,7 @@ void sched_show_task(struct task_struct *p) | |||
6009 | printk(KERN_CONT " %016lx ", thread_saved_pc(p)); | 6009 | printk(KERN_CONT " %016lx ", thread_saved_pc(p)); |
6010 | #endif | 6010 | #endif |
6011 | #ifdef CONFIG_DEBUG_STACK_USAGE | 6011 | #ifdef CONFIG_DEBUG_STACK_USAGE |
6012 | { | 6012 | free = stack_not_used(p); |
6013 | unsigned long *n = end_of_stack(p); | ||
6014 | while (!*n) | ||
6015 | n++; | ||
6016 | free = (unsigned long)n - (unsigned long)end_of_stack(p); | ||
6017 | } | ||
6018 | #endif | 6013 | #endif |
6019 | printk(KERN_CONT "%5lu %5d %6d\n", free, | 6014 | printk(KERN_CONT "%5lu %5d %6d\n", free, |
6020 | task_pid_nr(p), task_pid_nr(p->real_parent)); | 6015 | task_pid_nr(p), task_pid_nr(p->real_parent)); |
@@ -9555,7 +9550,7 @@ cpuacct_destroy(struct cgroup_subsys *ss, struct cgroup *cgrp) | |||
9555 | 9550 | ||
9556 | static u64 cpuacct_cpuusage_read(struct cpuacct *ca, int cpu) | 9551 | static u64 cpuacct_cpuusage_read(struct cpuacct *ca, int cpu) |
9557 | { | 9552 | { |
9558 | u64 *cpuusage = percpu_ptr(ca->cpuusage, cpu); | 9553 | u64 *cpuusage = per_cpu_ptr(ca->cpuusage, cpu); |
9559 | u64 data; | 9554 | u64 data; |
9560 | 9555 | ||
9561 | #ifndef CONFIG_64BIT | 9556 | #ifndef CONFIG_64BIT |
@@ -9574,7 +9569,7 @@ static u64 cpuacct_cpuusage_read(struct cpuacct *ca, int cpu) | |||
9574 | 9569 | ||
9575 | static void cpuacct_cpuusage_write(struct cpuacct *ca, int cpu, u64 val) | 9570 | static void cpuacct_cpuusage_write(struct cpuacct *ca, int cpu, u64 val) |
9576 | { | 9571 | { |
9577 | u64 *cpuusage = percpu_ptr(ca->cpuusage, cpu); | 9572 | u64 *cpuusage = per_cpu_ptr(ca->cpuusage, cpu); |
9578 | 9573 | ||
9579 | #ifndef CONFIG_64BIT | 9574 | #ifndef CONFIG_64BIT |
9580 | /* | 9575 | /* |
@@ -9670,7 +9665,7 @@ static void cpuacct_charge(struct task_struct *tsk, u64 cputime) | |||
9670 | ca = task_ca(tsk); | 9665 | ca = task_ca(tsk); |
9671 | 9666 | ||
9672 | for (; ca; ca = ca->parent) { | 9667 | for (; ca; ca = ca->parent) { |
9673 | u64 *cpuusage = percpu_ptr(ca->cpuusage, cpu); | 9668 | u64 *cpuusage = per_cpu_ptr(ca->cpuusage, cpu); |
9674 | *cpuusage += cputime; | 9669 | *cpuusage += cputime; |
9675 | } | 9670 | } |
9676 | } | 9671 | } |