Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207222
b: refs/heads/master
c: 31f961a
h: refs/heads/master
v: v3
  • Loading branch information
Minchan Kim authored and Linus Torvalds committed Aug 10, 2010
1 parent a08abc4 commit bc4b233
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 0aad4b3124850e85fe54e610802f0917ce46a1ae
refs/heads/master: 31f961a89bd1cb9baaf32af4bd8b571ace3447b1
6 changes: 3 additions & 3 deletions trunk/mm/vmstat.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
DEFINE_PER_CPU(struct vm_event_state, vm_event_states) = {{0}};
EXPORT_PER_CPU_SYMBOL(vm_event_states);

static void sum_vm_events(unsigned long *ret, const struct cpumask *cpumask)
static void sum_vm_events(unsigned long *ret)
{
int cpu;
int i;

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

for_each_cpu(cpu, cpumask) {
for_each_online_cpu(cpu) {
struct vm_event_state *this = &per_cpu(vm_event_states, cpu);

for (i = 0; i < NR_VM_EVENT_ITEMS; i++)
Expand All @@ -45,7 +45,7 @@ static void sum_vm_events(unsigned long *ret, const struct cpumask *cpumask)
void all_vm_events(unsigned long *ret)
{
get_online_cpus();
sum_vm_events(ret, cpu_online_mask);
sum_vm_events(ret);
put_online_cpus();
}
EXPORT_SYMBOL_GPL(all_vm_events);
Expand Down

0 comments on commit bc4b233

Please sign in to comment.