Messages in this thread | | | From | Hayes Wang <> | Subject | RE: [PATCH net-next v2 2/3] r8152: clear theflagofSCHEDULE_TASKLETin tasklet | Date | Mon, 3 Nov 2014 12:35:29 +0000 |
| |
Francois Romieu [mailto:romieu@fr.zoreil.com] [...] > test_and_clear_bit (dense) or clear_bit would be more idiomatic.
Excuse me. If I use clear_bit without test_bit or test_and_clear_bit, they alwayes call the spin lock. However, for my original flow, the spin lock is only called when the clear_bit is necessary. Is that better?
Best Regards, Hayes
| |