--- zzzz-none-000/linux-4.9.276/lib/ratelimit.c 2021-07-20 14:21:16.000000000 +0000 +++ falcon-5530-750/linux-4.9.276/lib/ratelimit.c 2023-04-05 08:19:02.000000000 +0000 @@ -13,6 +13,8 @@ #include #include +#include + /* * __ratelimit - rate limiting * @rs: ratelimit_state data @@ -39,7 +41,7 @@ * in addition to the one that will be printed by * the entity that is holding the lock already: */ - if (!raw_spin_trylock_irqsave(&rs->lock, flags)) + if (!yield_raw_spin_trylock_irqsave(&rs->lock, flags)) return 0; if (!rs->begin) @@ -64,7 +66,7 @@ rs->missed++; ret = 0; } - raw_spin_unlock_irqrestore(&rs->lock, flags); + yield_raw_spin_unlock_irqrestore(&rs->lock, flags); return ret; }