diff options
author | Matteo Croce <matteo@openwrt.org> | 2008-05-30 18:41:52 +0000 |
---|---|---|
committer | Matteo Croce <matteo@openwrt.org> | 2008-05-30 18:41:52 +0000 |
commit | 972407ac2e882f74c14fe51d49c3d4549b1f93f5 (patch) | |
tree | 69659c0819a0e750de1da368b9426453c2f919bb /target/linux/avr32 | |
parent | 6393d316cd61e2089b2d7a03884e831151468d5e (diff) | |
download | master-187ad058-972407ac2e882f74c14fe51d49c3d4549b1f93f5.tar.gz master-187ad058-972407ac2e882f74c14fe51d49c3d4549b1f93f5.tar.bz2 master-187ad058-972407ac2e882f74c14fe51d49c3d4549b1f93f5.zip |
avr32: fix kernel panic when using ondemand cpufreq givernor
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11305 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/avr32')
-rw-r--r-- | target/linux/avr32/patches/120-cpufreq_panic.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/target/linux/avr32/patches/120-cpufreq_panic.patch b/target/linux/avr32/patches/120-cpufreq_panic.patch new file mode 100644 index 0000000000..fe9576ce64 --- /dev/null +++ b/target/linux/avr32/patches/120-cpufreq_panic.patch @@ -0,0 +1,25 @@ +From: Haavard Skinnemoen <haavard.skinnemoen@atmel.com> +Date: Tue, 27 May 2008 07:37:42 +0000 (+0200) +Subject: avr32: Fix cpufreq oops when ondemand governor is default +X-Git-Url: http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Fhskinnemoen%2Favr32-2.6.git;a=commitdiff_plain;h=f04d264afc51acdffeba9cdf3baf04116687680c + +avr32: Fix cpufreq oops when ondemand governor is default + +Move the AP7 cpufreq init to late_initcall() so that we don't try to +bring up cpufreq until the governor is ready. x86 also uses +late_initcall() for this. + +Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com> +--- + +diff --git a/arch/avr32/mach-at32ap/cpufreq.c b/arch/avr32/mach-at32ap/cpufreq.c +index 235524b..5dd8d25 100644 +--- a/arch/avr32/mach-at32ap/cpufreq.c ++++ b/arch/avr32/mach-at32ap/cpufreq.c +@@ -108,5 +108,4 @@ static int __init at32_cpufreq_init(void) + { + return cpufreq_register_driver(&at32_driver); + } +- +-arch_initcall(at32_cpufreq_init); ++late_initcall(at32_cpufreq_init); |