From d2b711fc7a253d6a33e326156b9f0eb786f483f1 Mon Sep 17 00:00:00 2001 From: "Bjoern B. Brandenburg" Date: Fri, 9 May 2008 23:56:03 -0400 Subject: LITMUS: Use atomic ops to clear bit. This is modeled after tasklets. Just writing a 0 does not have the desired effect on SPARC64. --- litmus/norqlock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litmus/norqlock.c b/litmus/norqlock.c index d0cbe1388e..11f85d352a 100644 --- a/litmus/norqlock.c +++ b/litmus/norqlock.c @@ -47,8 +47,8 @@ void tick_no_rqlock(void) todo = next; next = next->next; todo->next = NULL; - mb(); - todo->active = 0; + smp_mb__before_clear_bit(); + clear_bit(0, (void*) &todo->active); todo->work(todo->arg); } -- cgit v1.2.2