]> git.baikalelectronics.ru Git - kernel.git/commit
mISDN: improve bitops usage
authorAkinobu Mita <akinobu.mita@gmail.com>
Thu, 29 Nov 2012 01:27:45 +0000 (01:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Nov 2012 17:10:57 +0000 (12:10 -0500)
commit4d43832392898d3e578fdd85f8ee53688829ed31
treeb9781c35dcf9990c7f94ec3cbc0c6c93063fbddb
parentb58972137fc076954cb6df1d4dd8b8eda0b095d5
mISDN: improve bitops usage

This improves bitops usages in several points:

- Convert u64 to a proper bitmap declaration.  This enables to remove
  superfluous typecasting from 'u64' to 'unsigned long *'.

- Convert superfluous atomic bitops to non atomic bitops.  The bitmap
  is allocated on the stack and it is not accessed by any other threads,
  so using atomic bitops is not necessary.

- Use find_next_zero_bit and find_next_zero_bit instead of calling
  test_bit() for each bit.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Karsten Keil <isdn@linux-pingi.de>
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/mISDN/tei.c