mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 04:34:08 +08:00
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: Frederic Weisbecker <frederic@kernel.org> Acked-by: Thomas Gleixner <tglx@linutronix.de> Cc: Chris Metcalf <cmetcalf@mellanox.com> Cc: Christoph Lameter <cl@linux.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Luiz Capitulino <lcapitulino@redhat.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Rik van Riel <riel@redhat.com> Cc: Wanpeng Li <kernellwp@gmail.com> Link: http://lkml.kernel.org/r/1509072159-31808-3-git-send-email-frederic@kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
parent
7863406143
commit
13316b31fd
@ -774,15 +774,10 @@ int proc_watchdog_cpumask(struct ctl_table *table, int write,
|
|||||||
|
|
||||||
void __init lockup_detector_init(void)
|
void __init lockup_detector_init(void)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_NO_HZ_FULL
|
if (tick_nohz_full_enabled())
|
||||||
if (tick_nohz_full_enabled()) {
|
|
||||||
pr_info("Disabling watchdog on nohz_full cores by default\n");
|
pr_info("Disabling watchdog on nohz_full cores by default\n");
|
||||||
cpumask_copy(&watchdog_cpumask, housekeeping_mask);
|
|
||||||
} else
|
cpumask_copy(&watchdog_cpumask, housekeeping_cpumask());
|
||||||
cpumask_copy(&watchdog_cpumask, cpu_possible_mask);
|
|
||||||
#else
|
|
||||||
cpumask_copy(&watchdog_cpumask, cpu_possible_mask);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (!watchdog_nmi_probe())
|
if (!watchdog_nmi_probe())
|
||||||
nmi_watchdog_available = true;
|
nmi_watchdog_available = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user