proc.c (fab8d6ddf6dee2608869005d45fe97f70e4f5bdd) proc.c (6f912042256c12b0927438122594f5379b364f5d)
1/* SCTP kernel reference Implementation
2 * Copyright (c) 2003 International Business Machines, Corp.
3 *
4 * This file is part of the SCTP kernel reference Implementation
5 *
6 * The SCTP reference implementation is free software;
7 * you can redistribute it and/or modify it under the terms of
8 * the GNU General Public License as published by

--- 55 unchanged lines hidden (view full) ---

64 * per cpu counters.
65 */
66static unsigned long
67fold_field(void *mib[], int nr)
68{
69 unsigned long res = 0;
70 int i;
71
1/* SCTP kernel reference Implementation
2 * Copyright (c) 2003 International Business Machines, Corp.
3 *
4 * This file is part of the SCTP kernel reference Implementation
5 *
6 * The SCTP reference implementation is free software;
7 * you can redistribute it and/or modify it under the terms of
8 * the GNU General Public License as published by

--- 55 unchanged lines hidden (view full) ---

64 * per cpu counters.
65 */
66static unsigned long
67fold_field(void *mib[], int nr)
68{
69 unsigned long res = 0;
70 int i;
71
72 for_each_cpu(i) {
72 for_each_possible_cpu(i) {
73 res +=
74 *((unsigned long *) (((void *) per_cpu_ptr(mib[0], i)) +
75 sizeof (unsigned long) * nr));
76 res +=
77 *((unsigned long *) (((void *) per_cpu_ptr(mib[1], i)) +
78 sizeof (unsigned long) * nr));
79 }
80 return res;

--- 307 unchanged lines hidden ---
73 res +=
74 *((unsigned long *) (((void *) per_cpu_ptr(mib[0], i)) +
75 sizeof (unsigned long) * nr));
76 res +=
77 *((unsigned long *) (((void *) per_cpu_ptr(mib[1], i)) +
78 sizeof (unsigned long) * nr));
79 }
80 return res;

--- 307 unchanged lines hidden ---