Re: [PATCH] driver core: Ensure proper suspend/resume ordering
From: Rafael J. Wysocki
Date: Thu Sep 17 2015 - 20:03:30 EST
On Fri, Sep 18, 2015 at 1:59 AM, Rafael J. Wysocki <rafael@xxxxxxxxxx> wrote:
> Hi,
>
> On Thu, Sep 17, 2015 at 5:48 PM, Grygorii Strashko
> <grygorii.strashko@xxxxxx> wrote:
[cut]
>
> In any case, maybe call that from dpm_suspend_start() after
> dpm_prepare() has run successfully? This is the point we need to
> start to block probing after all.
Actually, even before dpm_prepare().
>
>> + }
>> +
>> if (error)
>> thaw_processes();
>> return error;
>> @@ -190,6 +197,7 @@ void thaw_processes(void)
>> atomic_dec(&system_freezing_cnt);
>> pm_freezing = false;
>> pm_nosig_freezing = false;
>> + device_force_probe_deferral(false);
>
> And why don't you call that from dpm_resume_end()?
>
>>
>> oom_killer_enable();
>>
>> --
Thanks,
Rafael
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/