aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-13 13:12:21 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-13 13:13:37 -0400
commitaba2da66cfbf7790ad79d4dee95871127d5ddf5e (patch)
tree974585e8419f63ebc2fa1e244c494b6b53f5842d /kernel
parent773208946a132fb733ba273ee8562814f828cc28 (diff)
parentf787a50306680c187cf2896a8017937c1bf6dc7e (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/mingo/linux-2.6-sched
* git://git.kernel.org/pub/scm/linux/kernel/git/mingo/linux-2.6-sched: [PATCH] sched: small topology.h cleanup [PATCH] sched: fix show_task()/show_tasks() output [PATCH] sched: remove stale version info from kernel/sched_debug.c [PATCH] sched: allow larger granularity [PATCH] sched: fix prio_to_wmult[] for nice 1 [ I re-did the commits to get rid of some bogus merge commit that Ingo had. - Linus ] Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched.c30
-rw-r--r--kernel/sched_debug.c2
2 files changed, 13 insertions, 19 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 9fbced64bfee..0559665a3a0b 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -751,7 +751,7 @@ static const u32 prio_to_wmult[40] = {
751 184467, 230589, 288233, 360285, 450347, 751 184467, 230589, 288233, 360285, 450347,
752 562979, 703746, 879575, 1099582, 1374389, 752 562979, 703746, 879575, 1099582, 1374389,
753 717986, 2147483, 2684354, 3355443, 4194304, 753 717986, 2147483, 2684354, 3355443, 4194304,
754 244160, 6557201, 8196502, 10250518, 12782640, 754 5244160, 6557201, 8196502, 10250518, 12782640,
755 16025997, 19976592, 24970740, 31350126, 39045157, 755 16025997, 19976592, 24970740, 31350126, 39045157,
756 49367440, 61356675, 76695844, 95443717, 119304647, 756 49367440, 61356675, 76695844, 95443717, 119304647,
757 148102320, 186737708, 238609294, 286331153, 757 148102320, 186737708, 238609294, 286331153,
@@ -4647,14 +4647,14 @@ static void show_task(struct task_struct *p)
4647 state = p->state ? __ffs(p->state) + 1 : 0; 4647 state = p->state ? __ffs(p->state) + 1 : 0;
4648 printk("%-13.13s %c", p->comm, 4648 printk("%-13.13s %c", p->comm,
4649 state < sizeof(stat_nam) - 1 ? stat_nam[state] : '?'); 4649 state < sizeof(stat_nam) - 1 ? stat_nam[state] : '?');
4650#if (BITS_PER_LONG == 32) 4650#if BITS_PER_LONG == 32
4651 if (state == TASK_RUNNING) 4651 if (state == TASK_RUNNING)
4652 printk(" running "); 4652 printk(" running ");
4653 else 4653 else
4654 printk(" %08lX ", thread_saved_pc(p)); 4654 printk(" %08lx ", thread_saved_pc(p));
4655#else 4655#else
4656 if (state == TASK_RUNNING) 4656 if (state == TASK_RUNNING)
4657 printk(" running task "); 4657 printk(" running task ");
4658 else 4658 else
4659 printk(" %016lx ", thread_saved_pc(p)); 4659 printk(" %016lx ", thread_saved_pc(p));
4660#endif 4660#endif
@@ -4666,11 +4666,7 @@ static void show_task(struct task_struct *p)
4666 free = (unsigned long)n - (unsigned long)end_of_stack(p); 4666 free = (unsigned long)n - (unsigned long)end_of_stack(p);
4667 } 4667 }
4668#endif 4668#endif
4669 printk("%5lu %5d %6d", free, p->pid, p->parent->pid); 4669 printk("%5lu %5d %6d\n", free, p->pid, p->parent->pid);
4670 if (!p->mm)
4671 printk(" (L-TLB)\n");
4672 else
4673 printk(" (NOTLB)\n");
4674 4670
4675 if (state != TASK_RUNNING) 4671 if (state != TASK_RUNNING)
4676 show_stack(p, NULL); 4672 show_stack(p, NULL);
@@ -4680,14 +4676,12 @@ void show_state_filter(unsigned long state_filter)
4680{ 4676{
4681 struct task_struct *g, *p; 4677 struct task_struct *g, *p;
4682 4678
4683#if (BITS_PER_LONG == 32) 4679#if BITS_PER_LONG == 32
4684 printk("\n" 4680 printk(KERN_INFO
4685 " free sibling\n"); 4681 " task PC stack pid father\n");
4686 printk(" task PC stack pid father child younger older\n");
4687#else 4682#else
4688 printk("\n" 4683 printk(KERN_INFO
4689 " free sibling\n"); 4684 " task PC stack pid father\n");
4690 printk(" task PC stack pid father child younger older\n");
4691#endif 4685#endif
4692 read_lock(&tasklist_lock); 4686 read_lock(&tasklist_lock);
4693 do_each_thread(g, p) { 4687 do_each_thread(g, p) {
@@ -4778,7 +4772,7 @@ cpumask_t nohz_cpu_mask = CPU_MASK_NONE;
4778static inline void sched_init_granularity(void) 4772static inline void sched_init_granularity(void)
4779{ 4773{
4780 unsigned int factor = 1 + ilog2(num_online_cpus()); 4774 unsigned int factor = 1 + ilog2(num_online_cpus());
4781 const unsigned long gran_limit = 10000000; 4775 const unsigned long gran_limit = 100000000;
4782 4776
4783 sysctl_sched_granularity *= factor; 4777 sysctl_sched_granularity *= factor;
4784 if (sysctl_sched_granularity > gran_limit) 4778 if (sysctl_sched_granularity > gran_limit)
diff --git a/kernel/sched_debug.c b/kernel/sched_debug.c
index 1baf87cceb7c..29f2c21e7da2 100644
--- a/kernel/sched_debug.c
+++ b/kernel/sched_debug.c
@@ -171,7 +171,7 @@ static int sched_debug_show(struct seq_file *m, void *v)
171 u64 now = ktime_to_ns(ktime_get()); 171 u64 now = ktime_to_ns(ktime_get());
172 int cpu; 172 int cpu;
173 173
174 SEQ_printf(m, "Sched Debug Version: v0.04, cfs-v20, %s %.*s\n", 174 SEQ_printf(m, "Sched Debug Version: v0.05, %s %.*s\n",
175 init_utsname()->release, 175 init_utsname()->release,
176 (int)strcspn(init_utsname()->version, " "), 176 (int)strcspn(init_utsname()->version, " "),
177 init_utsname()->version); 177 init_utsname()->version);