Skip to content
Snippets Groups Projects
Commit ebd5a653 authored by Guenter Roeck's avatar Guenter Roeck Committed by Google Cont Rebase
Browse files

FIXUP: CHROMIUM: hardlockup: detect hard lockups without NMIs using secondary cpus


0-day reports:

ld: kernel/watchdog.o: in function `set_sample_period':
kernel/watchdog.c:250: undefined reference to `watchdog_update_hrtimer_threshold'

watchdog_update_hrtimer_threshold is only declared if both
CONFIG_HARDLOCKUP_CHECK_TIMESTAMP and CONFIG_HARDLOCKUP_DETECTOR_PERF
are enabled. Fix dependencies.

BUG=None
TEST=Test builds

Change-Id: Ibe575dfbc7f3eca86c4a96d20f945857fa96cd6f
Disallow-Recycled-Builds: test-failures
Signed-off-by: default avatarGuenter Roeck <groeck@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/3335762


Reviewed-by: default avatarMartin Faltesek <mfaltesek@google.com>
Commit-Queue: Martin Faltesek <mfaltesek@google.com>
parent 993dd462
No related branches found
No related tags found
No related merge requests found
......@@ -208,7 +208,7 @@ u64 hw_nmi_get_sample_period(int watchdog_thresh);
#endif
#if defined(CONFIG_HARDLOCKUP_CHECK_TIMESTAMP) && \
defined(CONFIG_HARDLOCKUP_DETECTOR_CORE)
defined(CONFIG_HARDLOCKUP_DETECTOR_PERF)
void watchdog_update_hrtimer_threshold(u64 period);
#else
static inline void watchdog_update_hrtimer_threshold(u64 period) { }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment