From: "William A. Kennington III" <william@wkennington.com>
To: Daniel Lezcano <daniel.lezcano@kernel.org>,
Thomas Gleixner <tglx@kernel.org>
Cc: "Andrew Jeffery" <andrew@codeconstruct.com.au>,
"Avi Fishman" <avifishman70@gmail.com>,
"Tomer Maimon" <tmaimon77@gmail.com>,
"Tali Perry" <tali.perry1@gmail.com>,
"Patrick Venture" <venture@google.com>,
"Nancy Yuen" <yuenn@google.com>,
"Benjamin Fair" <benjaminfair@google.com>,
"Joel Stanley" <joel@jms.id.au>,
"Jonathan Neuschäfer" <j.neuschaefer@gmx.net>,
openbmc@lists.ozlabs.org, linux-kernel@vger.kernel.org,
"William A. Kennington III" <william@wkennington.com>
Subject: [PATCH 0/2] clocksource/drivers/timer-npcm7xx: Fix timer1 warning, add sched_clock
Date: Sat, 28 Nov 2026 02:52:22 +0000 [thread overview]
Message-ID: <20261128025224.2680046-1-william@wkennington.com> (raw)
Two fixes for drivers/clocksource/timer-npcm7xx.c found while bringing
up Linux 7.3 on an NPCM730 BMC:
1. of_clk_get(np, 1) returns ERR_PTR(-ENOENT) when only one clock is
present in DT, which is the case for every in-tree device tree, so
boot always logs a spurious warning for the optional timer1 clock.
Ignore -ENOENT, add the missing newline, and check
clk_prepare_enable() errors.
2. Register the 24-bit free-running timer1 counter with
sched_clock_register() instead of falling back to jiffies, which
also enables CONFIG_IRQ_TIME_ACCOUNTING at runtime.
Tested on an NPCM730 BMC: the timer1 -ENOENT boot warning is gone,
sched_clock registers at 80 ns resolution with microsecond dmesg
timestamps, and /proc/stat reports live IRQ time under TCP load.
WPCM450, which shares the driver, was not tested.
William A. Kennington III (2):
clocksource/drivers/timer-npcm7xx: Fix spurious timer1 clock warning
clocksource/drivers/timer-npcm7xx: Register timer1 as sched_clock
drivers/clocksource/timer-npcm7xx.c | 23 ++++++++++++++++++-----
1 file changed, 18 insertions(+), 5 deletions(-)
next reply other threads:[~2026-11-28 2:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-28 2:52 William A. Kennington III [this message]
2026-11-28 2:52 ` [PATCH 1/2] clocksource/drivers/timer-npcm7xx: Fix spurious timer1 clock warning William A. Kennington III
2026-11-28 2:52 ` [PATCH 2/2] clocksource/drivers/timer-npcm7xx: Register timer1 as sched_clock William A. Kennington III
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=20261128025224.2680046-1-william@wkennington.com \
--to=william@wkennington.com \
--cc=andrew@codeconstruct.com.au \
--cc=avifishman70@gmail.com \
--cc=benjaminfair@google.com \
--cc=daniel.lezcano@kernel.org \
--cc=j.neuschaefer@gmx.net \
--cc=joel@jms.id.au \
--cc=linux-kernel@vger.kernel.org \
--cc=openbmc@lists.ozlabs.org \
--cc=tali.perry1@gmail.com \
--cc=tglx@kernel.org \
--cc=tmaimon77@gmail.com \
--cc=venture@google.com \
--cc=yuenn@google.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.