From: Eric Paris Date: Mon, 23 Mar 2009 17:22:09 +0000 (+0100) Subject: mutex: add atomic_dec_and_mutex_lock() X-Git-Tag: v2.6.31-rc1~407^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1fca26631f76a5e8b18435a43f5d82b8734da4b;p=pandora-kernel.git mutex: add atomic_dec_and_mutex_lock() Much like the atomic_dec_and_lock() function in which we take an hold a spin_lock if we drop the atomic to 0 this function takes and holds the mutex if we dec the atomic to 0. Signed-off-by: Eric Paris Signed-off-by: Peter Zijlstra Cc: Paul Mackerras Orig-LKML-Reference: <20090323172417.410913479@chello.nl> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed