]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/mutex.c
h63xx: tsc2101 alsa sound support
[linux-2.6-omap-h63xx.git] / kernel / mutex.c
index d3dcb8b44bacd2611e433adb7fedc20f9ccd3725..5449b210d9edb1aaf4be340730a47e07d1756edf 100644 (file)
@@ -81,6 +81,7 @@ __mutex_lock_slowpath(atomic_t *lock_count __IP_DECL__);
  */
 void fastcall __sched mutex_lock(struct mutex *lock)
 {
+       might_sleep();
        /*
         * The locking fastpath is the 1->0 transition from
         * 'unlocked' into 'locked' state.
@@ -201,7 +202,7 @@ __mutex_lock_slowpath(atomic_t *lock_count __IP_DECL__)
 static fastcall noinline void
 __mutex_unlock_slowpath(atomic_t *lock_count __IP_DECL__)
 {
-        struct mutex *lock = container_of(lock_count, struct mutex, count);
+       struct mutex *lock = container_of(lock_count, struct mutex, count);
 
        DEBUG_WARN_ON(lock->owner != current_thread_info());
 
@@ -253,6 +254,7 @@ __mutex_lock_interruptible_slowpath(atomic_t *lock_count __IP_DECL__);
  */
 int fastcall __sched mutex_lock_interruptible(struct mutex *lock)
 {
+       might_sleep();
        return __mutex_fastpath_lock_retval
                        (&lock->count, __mutex_lock_interruptible_slowpath);
 }
@@ -311,6 +313,3 @@ int fastcall mutex_trylock(struct mutex *lock)
 }
 
 EXPORT_SYMBOL(mutex_trylock);
-
-
-