lkml.org 
[lkml]   [2014]   [Jul]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH -tip/master 5/7] locking/mutex: Use MUTEX_SPIN_ON_OWNER when appropriate
    From
    Date
    On Sun, 2014-07-27 at 22:18 -0700, Davidlohr Bueso wrote:
    > 4badad35 (locking/mutex: Disable optimistic spinning on some
    > architectures) added a ARCH_SUPPORTS_ATOMIC_RMW flag to
    > disable the mutex optimistic feature on specific archs.
    >
    > Because CONFIG_MUTEX_SPIN_ON_OWNER only depended on DEBUG and
    > SMP, it was ok to have the ->owner field conditional a bit
    > flexible. However by adding a new variable to the matter,
    > we can waste space with the unused field, ie: CONFIG_SMP &&
    > (!CONFIG_MUTEX_SPIN_ON_OWNER && !CONFIG_DEBUG_MUTEX).
    >
    > Signed-off-by: Davidlohr Bueso <davidlohr@hp.com>

    Acked-by: Jason Low <jason.low2@hp.com>



    \
     
     \ /
      Last update: 2014-07-31 02:01    [W:2.406 / U:0.196 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site