Several places in the code have constructions like this:
if (bool_variable) {
atomic_set_bit(flags, FLAG);
} else {
atomic_clear_bit(flags, FLAG);
}
To reduce the amount of code for such situations, introduce a new
atomic_set_bit_to() helper which lets you condense the above five
lines to a single one:
atomic_set_bit_to(flags, FLAG, bool_variable);
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
|
||
|---|---|---|
| .. | ||
| atomic.c | ||
| bitfield.c | ||
| byteorder.c | ||
| clock.c | ||
| dlist.c | ||
| intmath.c | ||
| main.c | ||
| multilib.c | ||
| printk.c | ||
| slist.c | ||
| timeout_order.c | ||