Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140903
b: refs/heads/master
c: bbcd306
h: refs/heads/master
i:
  140901: b953c3b
  140899: 2233970
  140895: 343fdcb
v: v3
  • Loading branch information
KOSAKI Motohiro authored and Ingo Molnar committed Mar 10, 2009
1 parent d252079 commit a606985
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 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: 8293dd6f86e759068ce918aa10ca9c5d6d711cd0
refs/heads/master: bbcd3063597a3824357cd83c501c2a2aa21ef37b
14 changes: 7 additions & 7 deletions trunk/kernel/trace/trace_workqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ static void probe_workqueue_creation(struct task_struct *wq_thread, int cpu)
struct cpu_workqueue_stats *cws;
unsigned long flags;

WARN_ON(cpu < 0 || cpu >= num_possible_cpus());
WARN_ON(cpu < 0);

/* Workqueues are sometimes created in atomic context */
cws = kzalloc(sizeof(struct cpu_workqueue_stats), GFP_ATOMIC);
Expand Down Expand Up @@ -175,12 +175,12 @@ static void *workqueue_stat_next(void *prev, int idx)
spin_lock_irqsave(&workqueue_cpu_stat(cpu)->lock, flags);
if (list_is_last(&prev_cws->list, &workqueue_cpu_stat(cpu)->list)) {
spin_unlock_irqrestore(&workqueue_cpu_stat(cpu)->lock, flags);
for (++cpu ; cpu < num_possible_cpus(); cpu++) {
ret = workqueue_stat_start_cpu(cpu);
if (ret)
return ret;
}
return NULL;
do {
cpu = cpumask_next(cpu, cpu_possible_mask);
if (cpu >= nr_cpu_ids)
return NULL;
} while (!(ret = workqueue_stat_start_cpu(cpu)));
return ret;
}
spin_unlock_irqrestore(&workqueue_cpu_stat(cpu)->lock, flags);

Expand Down

0 comments on commit a606985

Please sign in to comment.