Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117679
b: refs/heads/master
c: bc8bcc7
h: refs/heads/master
i:
  117677: c8bc76d
  117675: 39aa8b2
  117671: a1a52df
  117663: 3a618af
v: v3
  • Loading branch information
Lai Jiangshan authored and Ingo Molnar committed Oct 22, 2008
1 parent d33c609 commit da7ed88
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 35af28219e684a36cc8b1ff456c370ce22be157d
refs/heads/master: bc8bcc79ea4203c7d04309f1307ab88c86f0b0cf
6 changes: 4 additions & 2 deletions trunk/arch/x86/kernel/cpu/proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,16 @@ static void *c_start(struct seq_file *m, loff_t *pos)
{
if (*pos == 0) /* just in case, cpu 0 is not the first */
*pos = first_cpu(cpu_online_map);
if ((*pos) < nr_cpu_ids && cpu_online(*pos))
else
*pos = next_cpu_nr(*pos - 1, cpu_online_map);
if ((*pos) < nr_cpu_ids)
return &cpu_data(*pos);
return NULL;
}

static void *c_next(struct seq_file *m, void *v, loff_t *pos)
{
*pos = next_cpu(*pos, cpu_online_map);
(*pos)++;
return c_start(m, pos);
}

Expand Down

0 comments on commit da7ed88

Please sign in to comment.