Re: BUG: sleeping function called from invalid context at drivers/cpufreq/cpufreq.c:370

Mike Galbraith
2014-09-27T06:14:53Z

On Sat, 2014-09-27 at 00:44 +0200, Rafael J. Wysocki wrote:

> Shouldn't that be pcc-cpufreq.c rather?

Yeah, silly mouse copy/pasted the wrong gitk bits.

> Also moving the spin_lock(&pcc_lock) after the cpufreq_freq_transition_begin()
> should fix the problem too (like the below). Have you tried that?

Have now. Yup, works and is prettier.

-Mike