archive mirror
 help / color / mirror / Atom feed
From: "Paul E. McKenney" <>
Subject: [PATCH v15 clocksource] Prohibit clocksource watchdog test when HZ<100
Date: Wed, 21 Jul 2021 14:27:55 -0700	[thread overview]
Message-ID: <20210721212755.GA2066078@paulmck-ThinkPad-P17-Gen-1> (raw)

As noted in a comment, use of the TEST_CLOCKSOURCE_WATCHDOG kconfig
option is prohibited when HZ is less than 100 in order to avoid signed
integer overflow.  However, comments can easily be ignored even when they
are actually read.  Therefore, add a "depends" clause to prohibit use
of the TEST_CLOCKSOURCE_WATCHDOG kconfig option when HZ is less than 100.

Reported-by: kernel test robot <>
Tested-by: Rong Chen <>
Signed-off-by: Paul E. McKenney <>

diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 831212722924c..79487f3dad430 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -2612,6 +2612,7 @@ config TEST_FPU
 	tristate "Test clocksource watchdog in kernel space"
+	depends on HZ >= 100
 	  Enable this option to create a kernel module that will trigger
 	  a test of the clocksource watchdog.  This module may be loaded

                 reply	other threads:[~2021-07-21 21:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210721212755.GA2066078@paulmck-ThinkPad-P17-Gen-1 \ \ \ \ \ \ \ \ \ \ \ \ \ \
    --subject='Re: [PATCH v15 clocksource] Prohibit clocksource watchdog test when HZ<100' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).