Thread (6 messages) flat view 6 messages, 3 authors, 2007-07-13

Re: [PATCH 1/2] Enable SPU switch notification to detect currently active SPU tasks.

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2007-07-13 12:37:16

quoted
+		if (unlikely(test_bit(SPU_SCHED_NOTIFY_ACTIVE,
+				      &ctx->sched_flags))) {
+			clear_bit(SPU_SCHED_NOTIFY_ACTIVE, &ctx->sched_flags);
this should use test_and_clear_bit
This also looks like an abuse of atomics to effectively implement a lock
or did I miss something ?

Ben.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help