Setting tag linux-2.6-32-36
[linux-2.6.git] / linux-2.6-002-divide-by-zero-fix.patch
1 diff -up linux-2.6.32-33.planetlab.x86_64/kernel/sched.c.orig linux-2.6.32-33.planetlab.x86_64/kernel/sched.c
2 --- linux-2.6.32-33.planetlab.x86_64/kernel/sched.c.orig        2012-08-29 05:08:16.000000000 -0400
3 +++ linux-2.6.32-33.planetlab.x86_64/kernel/sched.c     2012-08-29 05:25:03.150631094 -0400
4 @@ -4058,6 +4058,9 @@ static void update_group_power(struct sc
5                 group = group->next;
6         } while (group != child->groups);
7  
8 +    if (!power)
9 +               power = 1;
10 +
11         sdg->cpu_power = power;
12  }
13