From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754123Ab1HNRBc (ORCPT ); Sun, 14 Aug 2011 13:01:32 -0400 Received: from mail-gw0-f46.google.com ([74.125.83.46]:41610 "EHLO mail-gw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753651Ab1HNRB3 (ORCPT ); Sun, 14 Aug 2011 13:01:29 -0400 Date: Sun, 14 Aug 2011 12:01:24 -0500 From: Jonathan Nieder To: Dave Jones Cc: cpufreq@vger.kernel.org, linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , Mattia Dongili , Kay Sievers Subject: Re: [BUG?] Moving drivers to drivers/cpufreq/ causes all to be loaded Message-ID: <20110814170124.GC12747@elie.gateway.2wire.net> References: <20110414094447.GA1611@n2100.arm.linux.org.uk> <201104261605.26791.arnd@arndb.de> <201104261904.45923.rjw@sisk.pl> <20110426181508.GB1908@redhat.com> <20110813154638.GA1494@elie.gateway.2wire.net> <20110813190246.GA10412@elie.gateway.2wire.net> <20110813211142.GA1536@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110813211142.GA1536@redhat.com> User-Agent: Mutt/1.5.21+46 (b01d63af6fea) (2011-07-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org (-cc: ARM/etc people; +cc: Kay) Dave Jones wrote: > If we have to move stuff again, we could do drivers/cpufreq/x86/ etc.. Unfortunately the old script used "find", not "ls", so that wouldn't work. :/ > What we used to do in Fedora grew more and more complex over time. > Here's the last incarnation: http://fpaste.org/uvDb/ The main difference from Debian seems to be that this script loads the module corresponding to the chosen governor, while Debian's init script loads all governor modules early (using a heuristic I would like to avoid that involves running "find" to list them) and chooses the governor to use later. > In an ideal world, we'd auto-load the right module on a hotplug event > from a cpu, but we're not there yet. I believe Kay is working on that. Yes, that is what I was hoping for. Are there patches to test? The comment at http://thread.gmane.org/gmane.linux.kernel/796450/focus=796874 also looks promising. Thanks much for the help, Jonathan