%define sublevel 32
-%if ("%{distro}" == "Fedora" && %{distrorelease} >= 12) || ("%{distro}" == "SL" && %{distrorelease} >= 6) || ("%{distro}" == "CentOS" && %{distrorelease} >= 6)
%define modern_distro 1
-%else
-%define modern_distro 0
-%endif
#### Planet-Lab ####
Summary: The Linux kernel
#### Planet-Lab ####
ApplyPatch linux-2.6-001-bcm5720.patch
+ApplyPatch linux-2.6-002-divide-by-zero-fix.patch
ApplyPatch patch-2.6.32-131.0.15.el6-vs2.3.0.36.29.6.diff
ApplyPatch linux-2.6-255-vserver-delta-cow-fix23.patch
ApplyPatch linux-2.6-250-ipsets.patch
--- /dev/null
+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
+--- linux-2.6.32-33.planetlab.x86_64/kernel/sched.c.orig 2012-08-29 05:08:16.000000000 -0400
++++ linux-2.6.32-33.planetlab.x86_64/kernel/sched.c 2012-08-29 05:25:03.150631094 -0400
+@@ -4058,6 +4058,9 @@ static void update_group_power(struct sc
+ group = group->next;
+ } while (group != child->groups);
+
++ if (!power)
++ power = 1;
++
+ sdg->cpu_power = power;
+ }
+