Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73094
b: refs/heads/master
c: ab63a63
h: refs/heads/master
v: v3
  • Loading branch information
Peter Zijlstra committed Oct 25, 2007
1 parent 53fb47c commit 425d44d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 143a5d325d35efb1b29dcb8d6031cf27107e183a
refs/heads/master: ab63a633cf072c719f885e46fa4814624312f672
5 changes: 3 additions & 2 deletions trunk/kernel/sched_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ print_task(struct seq_file *m, struct rq *rq, struct task_struct *p)
static void print_rq(struct seq_file *m, struct rq *rq, int rq_cpu)
{
struct task_struct *g, *p;
unsigned long flags;

SEQ_printf(m,
"\nrunnable tasks:\n"
Expand All @@ -88,7 +89,7 @@ static void print_rq(struct seq_file *m, struct rq *rq, int rq_cpu)
"------------------------------------------------------"
"----------------------------------------------------\n");

read_lock_irq(&tasklist_lock);
read_lock_irqsave(&tasklist_lock, flags);

do_each_thread(g, p) {
if (!p->se.on_rq || task_cpu(p) != rq_cpu)
Expand All @@ -97,7 +98,7 @@ static void print_rq(struct seq_file *m, struct rq *rq, int rq_cpu)
print_task(m, rq, p);
} while_each_thread(g, p);

read_unlock_irq(&tasklist_lock);
read_unlock_irqrestore(&tasklist_lock, flags);
}

void print_cfs_rq(struct seq_file *m, int cpu, struct cfs_rq *cfs_rq)
Expand Down

0 comments on commit 425d44d

Please sign in to comment.