Re: [PATCH] cpufreq: Avoid cpufreq_suspend() deadlock on system shutdown

2019-10-09 Thread Viresh Kumar
On 09-10-19, 01:29, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > It is incorrect to set the cpufreq syscore shutdown callback pointer > to cpufreq_suspend(), because that function cannot be run in the > syscore stage of system shutdown for two reasons: (a) it may attempt > to carry out

[PATCH] cpufreq: Avoid cpufreq_suspend() deadlock on system shutdown

2019-10-08 Thread Rafael J. Wysocki
From: Rafael J. Wysocki It is incorrect to set the cpufreq syscore shutdown callback pointer to cpufreq_suspend(), because that function cannot be run in the syscore stage of system shutdown for two reasons: (a) it may attempt to carry out actions depending on devices that have already been shut