Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83091
b: refs/heads/master
c: 9eccf2a
h: refs/heads/master
i:
  83089: 2ccfe11
  83087: ec633e3
v: v3
  • Loading branch information
Christoph Lameter authored and Linus Torvalds committed Feb 5, 2008
1 parent 0374d78 commit bf5a09f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 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: 7766755a2f249e7e0dabc5255a0a3d151ff79821
refs/heads/master: 9eccf2a816ed0aad82b577de6a40cd098ad41944
11 changes: 2 additions & 9 deletions trunk/mm/vmstat.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,14 @@ EXPORT_PER_CPU_SYMBOL(vm_event_states);

static void sum_vm_events(unsigned long *ret, cpumask_t *cpumask)
{
int cpu = 0;
int cpu;
int i;

memset(ret, 0, NR_VM_EVENT_ITEMS * sizeof(unsigned long));

cpu = first_cpu(*cpumask);
while (cpu < NR_CPUS) {
for_each_cpu_mask(cpu, *cpumask) {
struct vm_event_state *this = &per_cpu(vm_event_states, cpu);

cpu = next_cpu(cpu, *cpumask);

if (cpu < NR_CPUS)
prefetch(&per_cpu(vm_event_states, cpu));


for (i = 0; i < NR_VM_EVENT_ITEMS; i++)
ret[i] += this->event[i];
}
Expand Down

0 comments on commit bf5a09f

Please sign in to comment.