[POWERPC] pasemi: Move pasemi_idle_init() to late_initcall()

Nathan Lynch ntl at pobox.com
Tue Sep 11 01:44:43 EST 2007


Olof Johansson wrote:
> commit 6a30bd1e2160e921a8fb051b472dfaf068f4f386
> Author: Olof Johansson <olof at lixom.net>
> Date:   Tue Sep 4 21:53:30 2007 -0500
> 
>     [POWERPC] pasemi: Move pasemi_idle_init() to late_initcall()
>     
>     Move pasemi_idle_init() to be a late_initcall instead of being called from
>     setup_arch(). This way the cpufreq driver has a chance to initialize and
>     save away the boot time astate before we go to idle for the first time.

The patch looks fine, but while I was reviewing this I noticed that
the pasemi cpufreq code is bool in Kconfig, but it has stuff like
module_init() etc in it.  It's not hurting anything, but it did
temporarily make me wonder "what happens if the cpufreq driver is
modular"?



More information about the Linuxppc-dev mailing list