1. Aug 29, 2010
    • Akinobu Mita's avatar
      mlx4: use bitmap library · e27cd4f8
      Akinobu Mita authored
      
      
      Replace loops calling set_bit() and clear_bit() with bitmap_set() and
      bitmap_clear().
      
      Unlike loops calling set_bit() and clear_bit(), bitmap_set() and
      bitmap_clear() are not atomic. But this is ok.
      Because the bitmap operations are protected by bitmap->lock
      except for initialization of the bitmap in mlx4_bitmap_init().
      
      Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
      Cc: Roland Dreier <rolandd@cisco.com>
      Cc: netdev@vger.kernel.org
      Cc: "David S. Miller" <davem@davemloft.net>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      e27cd4f8
    • Akinobu Mita's avatar
      econet: kill unnecessary spin_lock_init() · 762c2916
      Akinobu Mita authored
      
      
      The spinlock aun_queue_lock is initialized statically. It is unnecessary
      to initialize by spin_lock_init() at module load time.
      
      This is detected by the semantic patch.
      
      // <smpl>
      @def@
      declarer name DEFINE_SPINLOCK;
      identifier spinlock;
      @@
      
      DEFINE_SPINLOCK(spinlock);
      
      @@
      identifier def.spinlock;
      @@
      
      - spin_lock_init(&spinlock);
      // </smpl>
      
      Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
      Cc: Julia Lawall <julia@diku.dk>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: netdev@vger.kernel.org
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      762c2916
  2. Aug 28, 2010
  3. Aug 27, 2010
  4. Aug 26, 2010
  5. Aug 25, 2010