lkml.org 
[lkml]   [2003]   [Mar]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH] small fixes in brlock.h
    Index: linux-2.5.64-unwashed/include/linux/brlock.h
    ===================================================================
    RCS file: /build/cvsroot/linux-2.5.64/include/linux/brlock.h,v
    retrieving revision 1.1.1.1
    diff -u -r1.1.1.1 brlock.h
    --- linux-2.5.64-unwashed/include/linux/brlock.h 5 Mar 2003 05:07:54 -0000 1.1.1.1
    +++ linux-2.5.64-unwashed/include/linux/brlock.h 9 Mar 2003 23:42:26 -0000
    @@ -85,8 +85,7 @@
    if (idx >= __BR_END)
    __br_lock_usage_bug();

    - preempt_disable();
    - _raw_read_lock(&__brlock_array[smp_processor_id()][idx]);
    + read_lock(&__brlock_array[smp_processor_id()][idx]);
    }

    static inline void br_read_unlock (enum brlock_indices idx)
    @@ -202,7 +201,7 @@
    do { local_bh_disable(); br_write_lock(idx); } while (0)

    #define br_read_unlock_irqrestore(idx, flags) \
    - do { br_read_unlock(irx); local_irq_restore(flags); } while (0)
    + do { br_read_unlock(idx); local_irq_restore(flags); } while (0)

    #define br_read_unlock_irq(idx) \
    do { br_read_unlock(idx); local_irq_enable(); } while (0)
    @@ -211,7 +210,7 @@
    do { br_read_unlock(idx); local_bh_enable(); } while (0)

    #define br_write_unlock_irqrestore(idx, flags) \
    - do { br_write_unlock(irx); local_irq_restore(flags); } while (0)
    + do { br_write_unlock(idx); local_irq_restore(flags); } while (0)

    #define br_write_unlock_irq(idx) \
    do { br_write_unlock(idx); local_irq_enable(); } while (0)
    --
    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:33    [W:2.444 / U:0.072 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site