[lkml]   [2013]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [BUG] cpufreq: sleeping function called from invalid context at kernel/workqueue.c:2811
On 7 February 2013 06:11, Rafael J. Wysocki <> wrote:
> From: Rafael J. Wysocki <>
> Subject: cpufreq: Move sysfs_remove_link() from under a spinlock
> Commit 73bf0fc "cpufreq: Don't remove sysfs link for policy->cpu"
> attempted to fix a bug in __cpufreq_remove_dev() by avoiding to
> remove the link to the "cpufreq" directory for policy->cpu, but it
> rearranged the code in such a way that sysfs_remove_link() ended up
> under a spinlock, which caused complaints about sleeping in atomic
> context to be emitted into the kernel log during system suspend.
> To fix this, revert commit 73bf0fc partially and move the
> sysfs_remove_link() in question to a separate block executed for
> cpus > 1 outside of the spinlock.
> Signed-off-by: Rafael J. Wysocki <>

BTW, i have dropped this patch completely as i got another lock fixing
patch :)

 \ /
  Last update: 2013-02-08 07:41    [W:0.063 / U:0.756 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site