diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-03-26 16:39:17 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-03-27 12:28:43 -0400 |
commit | 6e15cf04860074ad032e88c306bea656bbdd0f22 (patch) | |
tree | c346383bb7563e8d66b2f4a502f875b259c34870 /kernel/sched.c | |
parent | be0ea69674ed95e1e98cb3687a241badc756d228 (diff) | |
parent | 60db56422043aaa455ac7f858ce23c273220f9d9 (diff) |
Merge branch 'core/percpu' into percpu-cpumask-x86-for-linus-2
Conflicts:
arch/parisc/kernel/irq.c
arch/x86/include/asm/fixmap_64.h
arch/x86/include/asm/setup.h
kernel/irq/handle.c
Semantic merge:
arch/x86/include/asm/fixmap.h
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 9f8506d68fdc..f4c413bdd38d 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -6342,12 +6342,7 @@ void sched_show_task(struct task_struct *p) | |||
6342 | printk(KERN_CONT " %016lx ", thread_saved_pc(p)); | 6342 | printk(KERN_CONT " %016lx ", thread_saved_pc(p)); |
6343 | #endif | 6343 | #endif |
6344 | #ifdef CONFIG_DEBUG_STACK_USAGE | 6344 | #ifdef CONFIG_DEBUG_STACK_USAGE |
6345 | { | 6345 | free = stack_not_used(p); |
6346 | unsigned long *n = end_of_stack(p); | ||
6347 | while (!*n) | ||
6348 | n++; | ||
6349 | free = (unsigned long)n - (unsigned long)end_of_stack(p); | ||
6350 | } | ||
6351 | #endif | 6346 | #endif |
6352 | printk(KERN_CONT "%5lu %5d %6d\n", free, | 6347 | printk(KERN_CONT "%5lu %5d %6d\n", free, |
6353 | task_pid_nr(p), task_pid_nr(p->real_parent)); | 6348 | task_pid_nr(p), task_pid_nr(p->real_parent)); |
@@ -9892,7 +9887,7 @@ cpuacct_destroy(struct cgroup_subsys *ss, struct cgroup *cgrp) | |||
9892 | 9887 | ||
9893 | static u64 cpuacct_cpuusage_read(struct cpuacct *ca, int cpu) | 9888 | static u64 cpuacct_cpuusage_read(struct cpuacct *ca, int cpu) |
9894 | { | 9889 | { |
9895 | u64 *cpuusage = percpu_ptr(ca->cpuusage, cpu); | 9890 | u64 *cpuusage = per_cpu_ptr(ca->cpuusage, cpu); |
9896 | u64 data; | 9891 | u64 data; |
9897 | 9892 | ||
9898 | #ifndef CONFIG_64BIT | 9893 | #ifndef CONFIG_64BIT |
@@ -9911,7 +9906,7 @@ static u64 cpuacct_cpuusage_read(struct cpuacct *ca, int cpu) | |||
9911 | 9906 | ||
9912 | static void cpuacct_cpuusage_write(struct cpuacct *ca, int cpu, u64 val) | 9907 | static void cpuacct_cpuusage_write(struct cpuacct *ca, int cpu, u64 val) |
9913 | { | 9908 | { |
9914 | u64 *cpuusage = percpu_ptr(ca->cpuusage, cpu); | 9909 | u64 *cpuusage = per_cpu_ptr(ca->cpuusage, cpu); |
9915 | 9910 | ||
9916 | #ifndef CONFIG_64BIT | 9911 | #ifndef CONFIG_64BIT |
9917 | /* | 9912 | /* |
@@ -10007,7 +10002,7 @@ static void cpuacct_charge(struct task_struct *tsk, u64 cputime) | |||
10007 | ca = task_ca(tsk); | 10002 | ca = task_ca(tsk); |
10008 | 10003 | ||
10009 | for (; ca; ca = ca->parent) { | 10004 | for (; ca; ca = ca->parent) { |
10010 | u64 *cpuusage = percpu_ptr(ca->cpuusage, cpu); | 10005 | u64 *cpuusage = per_cpu_ptr(ca->cpuusage, cpu); |
10011 | *cpuusage += cputime; | 10006 | *cpuusage += cputime; |
10012 | } | 10007 | } |
10013 | } | 10008 | } |