Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 32209
b: refs/heads/master
c: 2ed6e34
h: refs/heads/master
i:
  32207: 8c875f9
v: v3
  • Loading branch information
Andreas Mohr authored and Linus Torvalds committed Jul 10, 2006
1 parent 6fce545 commit c9a8ff1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0a565f7919cfb3d3df2c97d45751cbb83d858f97
refs/heads/master: 2ed6e34f88a0d896a6f889b00693cae0fadacfd0
17 changes: 7 additions & 10 deletions trunk/kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -3384,7 +3384,7 @@ EXPORT_SYMBOL(schedule);

#ifdef CONFIG_PREEMPT
/*
* this is is the entry point to schedule() from in-kernel preemption
* this is the entry point to schedule() from in-kernel preemption
* off of preempt_enable. Kernel preemptions off return from interrupt
* occur there and call schedule directly.
*/
Expand Down Expand Up @@ -3427,7 +3427,7 @@ asmlinkage void __sched preempt_schedule(void)
EXPORT_SYMBOL(preempt_schedule);

/*
* this is is the entry point to schedule() from kernel preemption
* this is the entry point to schedule() from kernel preemption
* off of irq context.
* Note, that this is called and return with irqs disabled. This will
* protect us against recursive calling from irq.
Expand All @@ -3439,7 +3439,7 @@ asmlinkage void __sched preempt_schedule_irq(void)
struct task_struct *task = current;
int saved_lock_depth;
#endif
/* Catch callers which need to be fixed*/
/* Catch callers which need to be fixed */
BUG_ON(ti->preempt_count || !irqs_disabled());

need_resched:
Expand Down Expand Up @@ -4650,20 +4650,17 @@ static inline struct task_struct *younger_sibling(struct task_struct *p)
return list_entry(p->sibling.next,struct task_struct,sibling);
}

static const char *stat_nam[] = { "R", "S", "D", "T", "t", "Z", "X" };
static const char stat_nam[] = "RSDTtZX";

static void show_task(struct task_struct *p)
{
struct task_struct *relative;
unsigned long free = 0;
unsigned state;

printk("%-13.13s ", p->comm);
state = p->state ? __ffs(p->state) + 1 : 0;
if (state < ARRAY_SIZE(stat_nam))
printk(stat_nam[state]);
else
printk("?");
printk("%-13.13s %c", p->comm,
state < sizeof(stat_nam) - 1 ? stat_nam[state] : '?');
#if (BITS_PER_LONG == 32)
if (state == TASK_RUNNING)
printk(" running ");
Expand Down Expand Up @@ -5776,7 +5773,7 @@ static unsigned long long measure_migration_cost(int cpu1, int cpu2)
cache = vmalloc(max_size);
if (!cache) {
printk("could not vmalloc %d bytes for cache!\n", 2*max_size);
return 1000000; // return 1 msec on very small boxen
return 1000000; /* return 1 msec on very small boxen */
}

while (size <= max_size) {
Expand Down

0 comments on commit c9a8ff1

Please sign in to comment.