Re: [PATCH] drivers/idle: make intel_idle.c driver more explicitly non-modular
From: Daniel Lezcano
Date: Thu Apr 07 2016 - 12:54:16 EST
On Tue, Apr 05, 2016 at 09:33:12AM +0200, rcochran@xxxxxxxxxxxxx wrote:
> On Tue, Apr 05, 2016 at 05:53:47AM +0000, Brown, Len wrote:
> > > On Tue, Apr 05, 2016 at 04:20:47AM +0000, Brown, Len wrote:
> > > > No, I do not believe that cpuidle should bother
> > > > supporting changing idle drivers at run-time.
> > >
> > > Huh? But you just said, "it would be good to be able to unload it
> > > when it doesn't probe."
> >
> > being able to switch the registered driver at run-time
> > does not require the driver to be modular.
>
> Uh, right, but you don't think that the cpuidle core should allow
> changing drivers. If it doesn't allowing changing drivers, then there
> would be just one choice, compiled in, and thus none of the drivers
> should be modular.
Actually, the modular support has been removed from almost all the cpuidle
drivers and the cpuidle framework is no longer assuming driver could
be unloaded.
The cpuidle drivers are very arch/platform specific and the acpi vs
something is an exception and could be handled differently than
converting to modular again.
I don't see the point on removing a cpuidle driver at runtime to
something else.
Removing the modular dead code in the driver makes sense as this
what have been done in the others drivers.
-- Daniel