I wasn't actually able to reproduce the bug myself, but I guess it is pretty obvious that I shouldn't have called cpufreq_unregister_notifier with a spinlock held. I haven't been doing this long enough to know exactly which kernel this patch should be against, so let me know if this ins't good. Thanks! This patch (for the 2.6.21.3 kernel plus previously sent cpufreq notifier patch) fixes a bug caused by calling cpufreq_unregister_notifier (which can sleep) while holding a spinlock. Signed-off-by: Stuart Hayes <stuart_hayes@dell.com>
Attachment:
ehci_unregister_cpufreq_notifier.patch
Description: ehci_unregister_cpufreq_notifier.patch
- Follow-Ups:
- Re: [linux-usb-devel] [PATCH] bug removing ehci-hcd
- From: Greg KH <greg@kroah.com>
- Re: [linux-usb-devel] [PATCH] bug removing ehci-hcd
- From: Greg KH <greg@kroah.com>
- Re: [linux-usb-devel] [PATCH] bug removing ehci-hcd
- References:
- [2.6.22-rc1-mm1] ehci-hcd - BUG: scheduling while atomic: rmmod/0x00000001/4568
- From: Mattia Dongili <malattia@linux.it>
- Re: [2.6.22-rc1-mm1] ehci-hcd - BUG: scheduling while atomic: rmmod/0x00000001/4568
- From: Greg KH <gregkh@suse.de>
- Re: [2.6.22-rc1-mm1] ehci-hcd - BUG: scheduling while atomic: rmmod/0x00000001/4568
- From: Andrew Morton <akpm@linux-foundation.org>
- RE: [2.6.22-rc1-mm1] ehci-hcd - BUG: scheduling while atomic: rmmod/0x00000001/4568
- From: <Stuart_Hayes@Dell.com>
- Re: [2.6.22-rc1-mm1] ehci-hcd - BUG: scheduling while atomic: rmmod/0x00000001/4568
- From: Andrew Morton <akpm@linux-foundation.org>
- [2.6.22-rc1-mm1] ehci-hcd - BUG: scheduling while atomic: rmmod/0x00000001/4568
- Prev by Date: Re: [PATCH 03/22] 2.6.22-rc3 perfmon2 : new system calls support
- Next by Date: Re: [BUG] Something goes wrong with timer statistics.
- Previous by thread: Re: [2.6.22-rc1-mm1] ehci-hcd - BUG: scheduling while atomic: rmmod/0x00000001/4568
- Next by thread: Re: [linux-usb-devel] [PATCH] bug removing ehci-hcd
- Index(es):
![]() |