Commit 13316b31 authored by Frederic Weisbecker's avatar Frederic Weisbecker Committed by Ingo Molnar

sched/isolation, watchdog: Use housekeeping_cpumask() instead of ad-hoc version

While trying to disable the watchog on nohz_full CPUs, the watchdog
implements an ad-hoc version of housekeeping_cpumask(). Lets replace
those re-invented lines.
Signed-off-by: default avatarFrederic Weisbecker <>
Acked-by: default avatarThomas Gleixner <>
Cc: Chris Metcalf <>
Cc: Christoph Lameter <>
Cc: Linus Torvalds <>
Cc: Luiz Capitulino <>
Cc: Mike Galbraith <>
Cc: Paul E. McKenney <>
Cc: Peter Zijlstra <>
Cc: Rik van Riel <>
Cc: Wanpeng Li <>
Link: default avatarIngo Molnar <>
parent 78634061
......@@ -774,15 +774,10 @@ int proc_watchdog_cpumask(struct ctl_table *table, int write,
void __init lockup_detector_init(void)
if (tick_nohz_full_enabled()) {
if (tick_nohz_full_enabled())
pr_info("Disabling watchdog on nohz_full cores by default\n");
cpumask_copy(&watchdog_cpumask, housekeeping_mask);
} else
cpumask_copy(&watchdog_cpumask, cpu_possible_mask);
cpumask_copy(&watchdog_cpumask, cpu_possible_mask);
cpumask_copy(&watchdog_cpumask, housekeeping_cpumask());
if (!watchdog_nmi_probe())
nmi_watchdog_available = true;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment