X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=src%2Fpatches%2Fsuse-2.6.27.25%2Fpatches.arch%2Fppc-spufs-10-Explain-conditional-decrement-of-aff_.patch;fp=src%2Fpatches%2Fsuse-2.6.27.25%2Fpatches.arch%2Fppc-spufs-10-Explain-conditional-decrement-of-aff_.patch;h=0000000000000000000000000000000000000000;hb=1e29f276cf10d0aedbf4aeb6f34b540d966878a6;hp=c8a589dc1479398f7d5d1e67e925b79ecda1790f;hpb=939c2a2110814dd854f2838462347b72b3398389;p=people%2Fteissler%2Fipfire-2.x.git diff --git a/src/patches/suse-2.6.27.25/patches.arch/ppc-spufs-10-Explain-conditional-decrement-of-aff_.patch b/src/patches/suse-2.6.27.25/patches.arch/ppc-spufs-10-Explain-conditional-decrement-of-aff_.patch deleted file mode 100644 index c8a589dc1..000000000 --- a/src/patches/suse-2.6.27.25/patches.arch/ppc-spufs-10-Explain-conditional-decrement-of-aff_.patch +++ /dev/null @@ -1,28 +0,0 @@ -Subject: Explain conditional decrement of aff_sched_count -From: Andre Detsch -References: 447133 - LTC50070 - -This patch adds a comment to clarify why atomic_dec_if_positive is being used -to decrement gang's aff_sched_count on SPU context unbind. - -Signed-off-by: Andre Detsch -Signed-off-by: Jeremy Kerr -Signed-off-by: Olaf Hering ---- - arch/powerpc/platforms/cell/spufs/sched.c | 5 +++++ - 1 file changed, 5 insertions(+) - ---- a/arch/powerpc/platforms/cell/spufs/sched.c -+++ b/arch/powerpc/platforms/cell/spufs/sched.c -@@ -444,6 +444,11 @@ static void spu_unbind_context(struct sp - atomic_dec(&cbe_spu_info[spu->node].reserved_spus); - - if (ctx->gang) -+ /* -+ * If ctx->gang->aff_sched_count is positive, SPU affinity is -+ * being considered in this gang. Using atomic_dec_if_positive -+ * allow us to skip an explicit check for affinity in this gang -+ */ - atomic_dec_if_positive(&ctx->gang->aff_sched_count); - - spu_switch_notify(spu, NULL);