Updated with Tizen:Base source codes
[external/procps.git] / packaging / procps-3.2.7-top-cpu0.patch
1 --- procps-3.2.7/top.c.orig     2007-09-07 21:28:41.000000000 +0100
2 +++ procps-3.2.7/top.c  2007-09-07 21:29:15.000000000 +0100
3 @@ -959,8 +959,15 @@
4  
5     // and just in case we're 2.2.xx compiled without SMP support...
6     if (Cpu_tot == 1) {
7 -      cpus[1].id = 0;
8 -      memcpy(cpus, &cpus[1], sizeof(CPU_t));
9 +      cpus[0].id = cpus[1].id = 0;
10 +      cpus[0].u = cpus[1].u;
11 +      cpus[0].n = cpus[1].n;
12 +      cpus[0].s = cpus[1].s;
13 +      cpus[0].i = cpus[1].i;
14 +      cpus[0].w = cpus[1].w;
15 +      cpus[0].x = cpus[1].x;
16 +      cpus[0].y = cpus[1].y;
17 +      cpus[0].z = cpus[1].z;
18     }
19  
20     // now value each separate cpu's tics