public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@kernel.org>
To: Connor Williamson <connordw@amazon.com>,
	jstultz@google.com, sboyd@kernel.org
Cc: linux-kernel@vger.kernel.org, nh-open-source@amazon.com,
	paulmck@kernel.org, connordw@amazon.com
Subject: Re: [PATCH timers/core v1] clocksource: Align clocksource watchdog constraints with Kconfig value
Date: Fri, 20 Mar 2026 17:58:41 +0100	[thread overview]
Message-ID: <87wlz6igji.ffs@tglx> (raw)
In-Reply-To: <20260313142939.3023-1-connordw@amazon.com>

On Fri, Mar 13 2026 at 14:29, Connor Williamson wrote:
> A previous patch intended to update both MAX_SKEW_USEC and
> CLOCKSOURCE_WATCHDOG_MAX_SKEW_US to 125 microseconds, resulting in a
> total tolerable skew per second of 500 microseconds as this value is
> doubled prior to being associated with the uncertainty_margin of a
> clocksource, and the uncertainty_margin values of two clocksources being
> compared are then summed before comparison to the skew.
>
> However, the default value of MAX_SKEW_USEC in the absence of the
> Kconfig option was defined as (125 * WATCHDOG_INTERVAL / HZ), which is
> (125 * (HZ >> 1)) / HZ, effectively ~ 125/2 microseconds, while
> CLOCKSOURCE_WATCHDOG_MAX_SKEW_US was set to 125 microseconds as
> intended.

Q: How does that matter?

A: Not at all.

   CLOCKSOURCE_WATCHDOG_MAX_SKEW_US is always defined when
   CLOCKSOURCE_WATCHDOG=y.

IOW, the #else path is simply dead code.

> Therefore, align MAX_SKEW_USEC with CLOCKSOURCE_WATCHDOG_MAX_SKEW_US,
> setting it to the intended default value of 125 microseconds.
>
> 'Fixes: c37e85c135ce ("clocksource: Loosen clocksource watchdog
> constraints")'

Bogus format for the Fixes tag. Please read and follow
Documentation. It's there for a reason.

But that doesn't matter much because this patch fixes clearly nothing.
The only valid "fix" is to delete the dead code and not to polish it,
but that's pretty moot as it is harmless and already scheduled for
removal in 7.1 due to:

  https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?h=timers/core

Thanks,

        tglx

  reply	other threads:[~2026-03-20 16:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-13 14:29 [PATCH timers/core v1] clocksource: Align clocksource watchdog constraints with Kconfig value Connor Williamson
2026-03-20 16:58 ` Thomas Gleixner [this message]
2026-03-23 13:28   ` connordw
2026-03-23 19:59     ` Thomas Gleixner

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=87wlz6igji.ffs@tglx \
    --to=tglx@kernel.org \
    --cc=connordw@amazon.com \
    --cc=jstultz@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nh-open-source@amazon.com \
    --cc=paulmck@kernel.org \
    --cc=sboyd@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox