diff options
author | Wen Yang <[email protected]> | 2023-05-05 00:12:53 +0800 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2023-06-18 22:41:53 +0200 |
commit | a7e282c77785c7eabf98836431b1f029481085ad (patch) | |
tree | aeada0a31cb0331d651baa1ad21b00eeb46da462 /lib/mpi/mpiutil.c | |
parent | fc4b4d96f793c827a5abf23df3e793592dbd38ce (diff) |
tick/rcu: Fix bogus ratelimit condition
The ratelimit logic in report_idle_softirq() is broken because the
exit condition is always true:
static int ratelimit;
if (ratelimit < 10)
return false; ---> always returns here
ratelimit++; ---> no chance to run
Make it check for >= 10 instead.
Fixes: 0345691b24c0 ("tick/rcu: Stop allowing RCU_SOFTIRQ in idle")
Signed-off-by: Wen Yang <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions