On Thu, 2009-07-23 at 12:46 +0200, Helmut Schaa wrote: > Am Donnerstag, 23. Juli 2009 schrieb Johannes Berg: > > On Thu, 2009-07-23 at 12:14 +0200, Helmut Schaa wrote: > > > Use a bitfield to store the current scan mode instead of two boolean > > > variables {sw,hw}_scanning. This patch does not introduce functional > > > changes but allows us to enhance the scan flags later (for example > > > for background scanning). > > > > > + if (test_bit(SCAN_SW_SCANNING, &local->scanning)) > > > > Do we actually need atomic bitops? > > No (at least not yet). That's why I used __set_bit. test_bit seems to not > have a non-atomic equivalent. Or did you mean not to use *_bit functions > at all? Sorry, you're right, I got confused. johannes
Attachment:
signature.asc
Description: This is a digitally signed message part