diff options
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 30 |
1 files changed, 12 insertions, 18 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; | |||
4778 | static inline void sched_init_granularity(void) | 4772 | static 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) |