[PATCH 1/2] cpuidle: fix cpu idle driver as a module can not remove

Li Yang-R58472 r58472 at freescale.com
Wed Jul 24 20:33:53 EST 2013



> -----Original Message-----
> From: linux-pm-owner at vger.kernel.org [mailto:linux-pm-
> owner at vger.kernel.org] On Behalf Of Wang Dongsheng-B40534
> Sent: Wednesday, July 24, 2013 10:26 AM
> To: Rafael J. Wysocki
> Cc: daniel.lezcano at linaro.org; linux-pm at vger.kernel.org; linuxppc-
> dev at lists.ozlabs.org
> Subject: RE: [PATCH 1/2] cpuidle: fix cpu idle driver as a module can not
> remove
> 
> 
> 
> > -----Original Message-----
> > From: Rafael J. Wysocki [mailto:rjw at sisk.pl]
> > Sent: Wednesday, July 24, 2013 5:33 AM
> > To: Wang Dongsheng-B40534
> > Cc: daniel.lezcano at linaro.org; linux-pm at vger.kernel.org; linuxppc-
> > dev at lists.ozlabs.org
> > Subject: Re: [PATCH 1/2] cpuidle: fix cpu idle driver as a module can
> > not remove
> >
> > On Tuesday, July 23, 2013 05:28:00 PM Dongsheng Wang wrote:
> > > From: Wang Dongsheng <dongsheng.wang at freescale.com>
> > >
> > > The module can not be removed when execute "rmmod". rmmod not use
> > > "--force".
> > >
> > > Log:
> > > root:~# rmmod cpuidle-e500
> > > incs[9], decs[1]
> > > rmmod: can't unload 'cpuidle_e500': Resource temporarily unavailable
> > >
> > > Signed-off-by: Wang Dongsheng <dongsheng.wang at freescale.com>
> >
> > Can you please check the current linux-next branch of the linux-pm.git
> > tree and see if that doesn't conflict with the material in there?
> >
> > Also please explain in the changelog how your changes help to fix the
> > problem.
> >
> Yes, Linux-next branch also have this problem.
> 
> Should I base on Linux-next to fix this problem?

I think Dongsheng is trying to make the platform cpuidle driver as a kernel module.

My questions are:
Is the cpuidle driver supposed to work as a module?
Or it can only be built-in like many current drivers do?

Regards,
Leo


More information about the Linuxppc-dev mailing list