Thread (47 messages) 47 messages, 3 authors, 2023-05-19

Re: [PATCH v4 01/17] watchdog/perf: Define dummy watchdog_update_hrtimer_threshold() on correct config

From: Petr Mladek <pmladek@suse.com>
Date: 2023-05-11 08:40:54
Also in: linux-perf-users, sparclinux

On Fri 2023-05-05 12:43:49, Nicholas Piggin wrote:
On Fri May 5, 2023 at 8:13 AM AEST, Douglas Anderson wrote:
quoted
The real watchdog_update_hrtimer_threshold() is defined in
watchdog_hardlockup_perf.c. That file is included if
In kernel/watchdog_hld.c.
With this fixed path:

Reviewed-by: Petr Mladek <pmladek@suse.com>
quoted
CONFIG_HARDLOCKUP_DETECTOR_PERF and the function is defined in that
file if CONFIG_HARDLOCKUP_CHECK_TIMESTAMP.

The dummy version of the function in "nmi.h" didn't get that quite
right. While this doesn't appear to be a huge deal, it's nice to make
it consistent.
It doesn't break builds because CHECK_TIMESTAMP is only defined by
x86 so others don't get a double definition, and x86 uses perf lockup
detector, so it gets the out of line version.

So has no functional change but should be fixed.

Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
quoted
Fixes: 7edaeb6841df ("kernel/watchdog: Prevent false positives with turbo modes")
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Best Regards,
Petr
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help