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 <[email protected]>
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 <[email protected]>
- Re: [linux-usb-devel] [PATCH] bug removing ehci-hcd
- From: Greg KH <[email protected]>
- 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 <[email protected]>
- Re: [2.6.22-rc1-mm1] ehci-hcd - BUG: scheduling while atomic: rmmod/0x00000001/4568
- From: Greg KH <[email protected]>
- Re: [2.6.22-rc1-mm1] ehci-hcd - BUG: scheduling while atomic: rmmod/0x00000001/4568
- From: Andrew Morton <[email protected]>
- RE: [2.6.22-rc1-mm1] ehci-hcd - BUG: scheduling while atomic: rmmod/0x00000001/4568
- From: <[email protected]>
- Re: [2.6.22-rc1-mm1] ehci-hcd - BUG: scheduling while atomic: rmmod/0x00000001/4568
- From: Andrew Morton <[email protected]>
- [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):