Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 16819
b: refs/heads/master
c: 84c2008
h: refs/heads/master
i:
  16817: 51ae346
  16815: f6cf0c2
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Jan 9, 2006
1 parent 365879b commit 0b8ccc9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: 9f5336e21893fafd232a9a02cfa7588ad153889a
refs/heads/master: 84c2008af01132c4ca257ed9b595693c611df15d
3 changes: 2 additions & 1 deletion trunk/mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1204,6 +1204,7 @@ static void __get_page_state(struct page_state *ret, int nr, cpumask_t *cpumask)
int cpu = 0;

memset(ret, 0, sizeof(*ret));
cpus_and(*cpumask, *cpumask, cpu_online_map);

cpu = first_cpu(*cpumask);
while (cpu < NR_CPUS) {
Expand Down Expand Up @@ -1256,7 +1257,7 @@ unsigned long read_page_state_offset(unsigned long offset)
unsigned long ret = 0;
int cpu;

for_each_cpu(cpu) {
for_each_online_cpu(cpu) {
unsigned long in;

in = (unsigned long)&per_cpu(page_states, cpu) + offset;
Expand Down

0 comments on commit 0b8ccc9

Please sign in to comment.