X-Git-Url: http://git.onelab.eu/?p=linux-2.6.git;a=blobdiff_plain;f=linux-2.6-002-divide-by-zero-fix.patch;fp=linux-2.6-002-divide-by-zero-fix.patch;h=6f79e438de130447385e303946db79c9c8296bff;hp=0000000000000000000000000000000000000000;hb=f08a33afcb323bcde8ce73ee6353280faf3a6a3b;hpb=0d434d27217f48c4f6bfe343524364b009e20a2f diff --git a/linux-2.6-002-divide-by-zero-fix.patch b/linux-2.6-002-divide-by-zero-fix.patch new file mode 100644 index 000000000..6f79e438d --- /dev/null +++ b/linux-2.6-002-divide-by-zero-fix.patch @@ -0,0 +1,13 @@ +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; + } +