diff options
| author | Wen Yang <[email protected]> | 2023-05-04 16:12:53 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2023-06-18 20:41:53 +0000 |
| commit | a7e282c77785c7eabf98836431b1f029481085ad (patch) | |
| tree | aeada0a31cb0331d651baa1ad21b00eeb46da462 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
| parent | alarmtimer: Remove unnecessary (void *) cast (diff) | |
| download | kernel-a7e282c77785c7eabf98836431b1f029481085ad.tar.gz kernel-a7e282c77785c7eabf98836431b1f029481085ad.zip | |
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 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions
