lkml.org 
[lkml]   [2005]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch 05/15] Generic Mutex Subsystem, mutex-core.patch

* Steven Rostedt <rostedt@goodmis.org> wrote:

> The unlikely below is only for the non MUTEX_LOCKLESS_FASTPATH case.
> Maybe have a define for the unlikely?
>
> #ifdef MUTEX_LOCKLESS_FASTPATH
> # define UNLIKELY_SLOW(x) x
> #else
> # define UNLIKELY_SLOW(x) unlikely(x)
> #endif

> > + if (unlikely(!list_empty(&lock->wait_list)))
> > + __mutex_wakeup_waiter(lock __IP__);

i'll rather eliminate the unlikely().

Ingo
-
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-12-19 17:46    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site