On 7/26/19 3:00 PM, Thomas Gleixner wrote:
cond_resched() can be used unconditionally. If CONFIG_PREEMPT is set, it
becomes a NOP scheduler wise.

Also the B43_BUG_ON() in that wrapper is a homebrewn variant of
__might_sleep() which is part of cond_resched() already.

Remove the wrapper and invoke cond_resched() directly.

Found while looking for CONFIG_PREEMPT dependent code treewide.

Signed-off-by: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: Kalle Valo <[email protected]>
Cc: Larry Finger <[email protected]>

Reviewed- and Tested-by: Larry Finger <[email protected]>

Thanks.

Larry

Reply via email to