Re: [BUG?] Moving drivers to drivers/cpufreq/ causes all to be loaded

From: Mattia Dongili
Date: Sat Aug 13 2011 - 20:18:39 EST


On Sat, Aug 13, 2011 at 05:11:42PM -0400, Dave Jones wrote:
> On Sat, Aug 13, 2011 at 02:02:46PM -0500, Jonathan Nieder wrote:
> > Jonathan Nieder wrote:
> >
> > > (1) This is still incredibly fragile. What *should* cpufrequtils
> > > be doing to get the modules it needs?
> > >
> > > (2) Using the 3.0 or later kernel with old userspace gives bad
> > > results (e.g., 30% increase in power consumption for one
> > > reporter). That's a regression.
> >
> > The "30% increase" part was an unrelated bug (i915.i915_enable_rc6=1
> > brings power consumption back to normal), for those who were
> > wondering. :)
> >
> > Old userspace automatically loading the wrong cpufreq drivers still
> > does not seem great to me, though I don't have any great ideas about
> > how to prevent that (a separate drivers/cpufreq-drivers/ directory
> > does not sound too appealing). I guess I'd be most interested in how
> > to fix (1) first.
>
> If we have to move stuff again, we could do drivers/cpufreq/x86/ etc..
> Even if we do that though, you really want to fix that userspace, because
> you're right that "load everything and see what sticks" is fragile,
> and pure luck that it ever did the right thing.

not sure why this bug landed here finally, it was clearly an
overlook in the Debian startup script and it's only specific to Debian.

The "load everything" part was not for cpu drivers but for governors
and helpers that used to sit into drivers/cpufreq alone.
The cpu driver loading part is fairly complex (or yes, messy as you say)
and not too dissimilar than the one from fedora.

--
mattia
:wq!
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/