diff options
-rw-r--r-- | include/linux/topology.h | 2 | ||||
-rw-r--r-- | kernel/sched.c | 30 | ||||
-rw-r--r-- | kernel/sched_debug.c | 2 |
3 files changed, 14 insertions, 20 deletions
diff --git a/include/linux/topology.h b/include/linux/topology.h index da6c39b2d051..d0890a7e5bab 100644 --- a/include/linux/topology.h +++ b/include/linux/topology.h | |||
@@ -50,10 +50,10 @@ | |||
50 | for_each_online_node(node) \ | 50 | for_each_online_node(node) \ |
51 | if (nr_cpus_node(node)) | 51 | if (nr_cpus_node(node)) |
52 | 52 | ||
53 | #ifndef node_distance | ||
54 | /* Conform to ACPI 2.0 SLIT distance definitions */ | 53 | /* Conform to ACPI 2.0 SLIT distance definitions */ |
55 | #define LOCAL_DISTANCE 10 | 54 | #define LOCAL_DISTANCE 10 |
56 | #define REMOTE_DISTANCE 20 | 55 | #define REMOTE_DISTANCE 20 |
56 | #ifndef node_distance | ||
57 | #define node_distance(from,to) ((from) == (to) ? LOCAL_DISTANCE : REMOTE_DISTANCE) | 57 | #define node_distance(from,to) ((from) == (to) ? LOCAL_DISTANCE : REMOTE_DISTANCE) |
58 | #endif | 58 | #endif |
59 | #ifndef RECLAIM_DISTANCE | 59 | #ifndef RECLAIM_DISTANCE |
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) |
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); |