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 <t...@linutronix.de>
Cc: net...@vger.kernel.org
Cc: b43-dev@lists.infradead.org
Cc: Kalle Valo <kv...@codeaurora.org>
Cc: Larry Finger <larry.fin...@lwfinger.net>
Reviewed- and Tested-by: Larry Finger <larry.fin...@lwfinger.net>
Thanks.
Larry