Re: Kernel warning in cpufreq_add_dev()
From: "Rafael J. Wysocki" <rafael@kernel.org>
Date: 2016-08-31 11:58:05
Also in:
linux-arm-kernel
From: "Rafael J. Wysocki" <rafael@kernel.org>
Date: 2016-08-31 11:58:05
Also in:
linux-arm-kernel
On Wed, Aug 31, 2016 at 6:11 AM, Viresh Kumar [off-list ref] wrote:
On 31-08-16, 03:26, Rafael J. Wysocki wrote:quoted
On Wednesday, August 24, 2016 06:43:16 PM Viresh Kumar wrote:quoted
On 22-08-16, 19:32, Rafael J. Wysocki wrote:quoted
But it will be called in that path during physical CPU hot-add, won't it?What about something like this instead (completely untested) ?Inline, please?I am not sure what that means. I pasted that inline in my previous mail only.
I wanted to say that I'd prefer patches to be sent in the message proper instead of as inline attachments. It is easier to respond to them this way (to me at least).
quoted
quoted
@Russell: Can you please try this ??I was thinking about something similar, but won't the WARN_ON()s in cpufreq_add/remove_dev_symlink() still trigger, say if there's more than one CPU in a policy and both happen to be online initially?real CPUs should already be online and their device structure should be available, isn't it ?
Not if the driver has already been registered when cpufreq_add_dev() runs AFAICS (which is the case in question). Thanks, Rafael