diff options
Diffstat (limited to 'kernel/watchdog.c')
| -rw-r--r-- | kernel/watchdog.c | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/kernel/watchdog.c b/kernel/watchdog.c index 403c9bd90413..6a5787233113 100644 --- a/kernel/watchdog.c +++ b/kernel/watchdog.c @@ -554,13 +554,15 @@ static void softlockup_start_all(void)  int lockup_detector_online_cpu(unsigned int cpu)  { -	watchdog_enable(cpu); +	if (cpumask_test_cpu(cpu, &watchdog_allowed_mask)) +		watchdog_enable(cpu);  	return 0;  }  int lockup_detector_offline_cpu(unsigned int cpu)  { -	watchdog_disable(cpu); +	if (cpumask_test_cpu(cpu, &watchdog_allowed_mask)) +		watchdog_disable(cpu);  	return 0;  } |