lkml.org 
[lkml]   [2002]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH][RFC] IDE locking #2
On Tue, 25 Jun 2002, OGAWA Hirofumi wrote:

> > + BUG_ON(!spin_is_locked(ch->lock));
>
> spin_is_locked() returns 0 always on the UP system.
> Instead, the following macro may be useful.
>
> #ifdef CONFIG_SMP
> #define assert_spin_is_locked(lock) BUG_ON(!spin_is_locked(lock))
> #else
> #define assert_spin_is_locked(lock) do {} while(0)
> #endif

Oh my =) thanks i'll change that.

Cheers,
Zwane
--
http://function.linuxpower.ca


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:22    [W:0.057 / U:0.752 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site