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>
This commit is contained in:
@@ -50,10 +50,10 @@
|
|||||||
for_each_online_node(node) \
|
for_each_online_node(node) \
|
||||||
if (nr_cpus_node(node))
|
if (nr_cpus_node(node))
|
||||||
|
|
||||||
#ifndef node_distance
|
|
||||||
/* Conform to ACPI 2.0 SLIT distance definitions */
|
/* Conform to ACPI 2.0 SLIT distance definitions */
|
||||||
#define LOCAL_DISTANCE 10
|
#define LOCAL_DISTANCE 10
|
||||||
#define REMOTE_DISTANCE 20
|
#define REMOTE_DISTANCE 20
|
||||||
|
#ifndef node_distance
|
||||||
#define node_distance(from,to) ((from) == (to) ? LOCAL_DISTANCE : REMOTE_DISTANCE)
|
#define node_distance(from,to) ((from) == (to) ? LOCAL_DISTANCE : REMOTE_DISTANCE)
|
||||||
#endif
|
#endif
|
||||||
#ifndef RECLAIM_DISTANCE
|
#ifndef RECLAIM_DISTANCE
|
||||||
|
@@ -751,7 +751,7 @@ static const u32 prio_to_wmult[40] = {
|
|||||||
184467, 230589, 288233, 360285, 450347,
|
184467, 230589, 288233, 360285, 450347,
|
||||||
562979, 703746, 879575, 1099582, 1374389,
|
562979, 703746, 879575, 1099582, 1374389,
|
||||||
717986, 2147483, 2684354, 3355443, 4194304,
|
717986, 2147483, 2684354, 3355443, 4194304,
|
||||||
244160, 6557201, 8196502, 10250518, 12782640,
|
5244160, 6557201, 8196502, 10250518, 12782640,
|
||||||
16025997, 19976592, 24970740, 31350126, 39045157,
|
16025997, 19976592, 24970740, 31350126, 39045157,
|
||||||
49367440, 61356675, 76695844, 95443717, 119304647,
|
49367440, 61356675, 76695844, 95443717, 119304647,
|
||||||
148102320, 186737708, 238609294, 286331153,
|
148102320, 186737708, 238609294, 286331153,
|
||||||
@@ -4647,11 +4647,11 @@ static void show_task(struct task_struct *p)
|
|||||||
state = p->state ? __ffs(p->state) + 1 : 0;
|
state = p->state ? __ffs(p->state) + 1 : 0;
|
||||||
printk("%-13.13s %c", p->comm,
|
printk("%-13.13s %c", p->comm,
|
||||||
state < sizeof(stat_nam) - 1 ? stat_nam[state] : '?');
|
state < sizeof(stat_nam) - 1 ? stat_nam[state] : '?');
|
||||||
#if (BITS_PER_LONG == 32)
|
#if BITS_PER_LONG == 32
|
||||||
if (state == TASK_RUNNING)
|
if (state == TASK_RUNNING)
|
||||||
printk(" running ");
|
printk(" running ");
|
||||||
else
|
else
|
||||||
printk(" %08lX ", thread_saved_pc(p));
|
printk(" %08lx ", thread_saved_pc(p));
|
||||||
#else
|
#else
|
||||||
if (state == TASK_RUNNING)
|
if (state == TASK_RUNNING)
|
||||||
printk(" running task ");
|
printk(" running task ");
|
||||||
@@ -4666,11 +4666,7 @@ static void show_task(struct task_struct *p)
|
|||||||
free = (unsigned long)n - (unsigned long)end_of_stack(p);
|
free = (unsigned long)n - (unsigned long)end_of_stack(p);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
printk("%5lu %5d %6d", free, p->pid, p->parent->pid);
|
printk("%5lu %5d %6d\n", free, p->pid, p->parent->pid);
|
||||||
if (!p->mm)
|
|
||||||
printk(" (L-TLB)\n");
|
|
||||||
else
|
|
||||||
printk(" (NOTLB)\n");
|
|
||||||
|
|
||||||
if (state != TASK_RUNNING)
|
if (state != TASK_RUNNING)
|
||||||
show_stack(p, NULL);
|
show_stack(p, NULL);
|
||||||
@@ -4680,14 +4676,12 @@ void show_state_filter(unsigned long state_filter)
|
|||||||
{
|
{
|
||||||
struct task_struct *g, *p;
|
struct task_struct *g, *p;
|
||||||
|
|
||||||
#if (BITS_PER_LONG == 32)
|
#if BITS_PER_LONG == 32
|
||||||
printk("\n"
|
printk(KERN_INFO
|
||||||
" free sibling\n");
|
" task PC stack pid father\n");
|
||||||
printk(" task PC stack pid father child younger older\n");
|
|
||||||
#else
|
#else
|
||||||
printk("\n"
|
printk(KERN_INFO
|
||||||
" free sibling\n");
|
" task PC stack pid father\n");
|
||||||
printk(" task PC stack pid father child younger older\n");
|
|
||||||
#endif
|
#endif
|
||||||
read_lock(&tasklist_lock);
|
read_lock(&tasklist_lock);
|
||||||
do_each_thread(g, p) {
|
do_each_thread(g, p) {
|
||||||
@@ -4778,7 +4772,7 @@ cpumask_t nohz_cpu_mask = CPU_MASK_NONE;
|
|||||||
static inline void sched_init_granularity(void)
|
static inline void sched_init_granularity(void)
|
||||||
{
|
{
|
||||||
unsigned int factor = 1 + ilog2(num_online_cpus());
|
unsigned int factor = 1 + ilog2(num_online_cpus());
|
||||||
const unsigned long gran_limit = 10000000;
|
const unsigned long gran_limit = 100000000;
|
||||||
|
|
||||||
sysctl_sched_granularity *= factor;
|
sysctl_sched_granularity *= factor;
|
||||||
if (sysctl_sched_granularity > gran_limit)
|
if (sysctl_sched_granularity > gran_limit)
|
||||||
|
@@ -171,7 +171,7 @@ static int sched_debug_show(struct seq_file *m, void *v)
|
|||||||
u64 now = ktime_to_ns(ktime_get());
|
u64 now = ktime_to_ns(ktime_get());
|
||||||
int cpu;
|
int cpu;
|
||||||
|
|
||||||
SEQ_printf(m, "Sched Debug Version: v0.04, cfs-v20, %s %.*s\n",
|
SEQ_printf(m, "Sched Debug Version: v0.05, %s %.*s\n",
|
||||||
init_utsname()->release,
|
init_utsname()->release,
|
||||||
(int)strcspn(init_utsname()->version, " "),
|
(int)strcspn(init_utsname()->version, " "),
|
||||||
init_utsname()->version);
|
init_utsname()->version);
|
||||||
|
Reference in New Issue
Block a user