aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/intel/pmt/class.h
diff options
context:
space:
mode:
authorPetr Mladek <[email protected]>2025-05-12 14:38:02 +0000
committerPaul E. McKenney <[email protected]>2025-06-24 12:47:35 +0000
commit5a5c5a3de1c7af579a9670b7d4b0169120ec92a7 (patch)
tree5cb7df217bbd3c1ea7a314ae9ed2d86207fc2558 /drivers/platform/x86/intel/pmt/class.h
parentlib: Add trivial kunit test for ratelimit (diff)
downloadkernel-5a5c5a3de1c7af579a9670b7d4b0169120ec92a7.tar.gz
kernel-5a5c5a3de1c7af579a9670b7d4b0169120ec92a7.zip
lib: Make the ratelimit test more reliable
The selftest fails most of the times when running in qemu with a kernel configured with CONFIG_HZ = 250: > test_ratelimit_smoke: 1 callbacks suppressed > # test_ratelimit_smoke: ASSERTION FAILED at lib/tests/test_ratelimit.c:28 > Expected ___ratelimit(&testrl, "test_ratelimit_smoke") == (false), but > ___ratelimit(&testrl, "test_ratelimit_smoke") == 1 (0x1) > (false) == 0 (0x0) Try to make the test slightly more reliable by calling the problematic ratelimit in the middle of the interval. Signed-off-by: Petr Mladek <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.h')
0 files changed, 0 insertions, 0 deletions