Thomas Gleixner <tglx@xxxxxxxxxxxxx> 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 cruft and invoke cond_resched() directly. > > Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx> > Reviewed-by: Larry Finger <Larry.Finger@xxxxxxxxxxxx> > Tested-by: Larry Finger <Larry.Finger@xxxxxxxxxxxx> Patch applied to wireless-drivers-next.git, thanks. 6004cf298a41 b43legacy: Remove pointless cond_resched() wrapper -- https://patchwork.kernel.org/patch/11073225/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches