|
@@ -1938,8 +1938,10 @@ static void check_for_broken_irqs(struct smi_info *smi_info)
|
|
|
|
|
|
static inline void stop_timer_and_thread(struct smi_info *smi_info)
|
|
static inline void stop_timer_and_thread(struct smi_info *smi_info)
|
|
{
|
|
{
|
|
- if (smi_info->thread != NULL)
|
|
|
|
|
|
+ if (smi_info->thread != NULL) {
|
|
kthread_stop(smi_info->thread);
|
|
kthread_stop(smi_info->thread);
|
|
|
|
+ smi_info->thread = NULL;
|
|
|
|
+ }
|
|
|
|
|
|
smi_info->timer_can_start = false;
|
|
smi_info->timer_can_start = false;
|
|
if (smi_info->timer_running)
|
|
if (smi_info->timer_running)
|