lkml.org 
[lkml]   [2006]   [Jul]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [RFC PATCH 02/33] Add sync bitops
    Date
    On Tuesday 18 July 2006 11:56, Arjan van de Ven wrote:
    > On Tue, 2006-07-18 at 00:00 -0700, Chris Wright wrote:
    > > plain text document attachment (synch-ops)
    > > Add "always lock'd" implementations of set_bit, clear_bit and
    > > change_bit and the corresponding test_and_ functions. Also add
    > > "always lock'd" implementation of cmpxchg. These give guaranteed
    > > strong synchronisation and are required for non-SMP kernels running on
    > > an SMP hypervisor.
    >
    > Hi,
    >
    > this sounds really like the wrong approach; you know you're compiling
    > for xen, so why not just make set_bit() and the others use the lock'd
    > instructions at compile time?

    I guess because they only need it for a small subset of set_bits.

    -Andi
    -
    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: 2006-07-19 14:57    [W:4.198 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site