All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] split up cpufreq.c in several files, x86 autoloader
@ 2003-10-03 22:36 Dominik Brodowski
  2003-10-03 23:23 ` AthlonRob
  0 siblings, 1 reply; 2+ messages in thread
From: Dominik Brodowski @ 2003-10-03 22:36 UTC (permalink / raw)
  To: cpufreq

I've a patch ready which splits up drivers/cpufreq/cpufreq.c into several
files. Instead of

-rw-r--r--    1 linux    users       26014 2003-10-03 23:31 cpufreq.c

it's this:

-rw-r--r--    1 linux    users       11625 2003-10-04 00:17 cpufreq_core.c
	driver and device {un}registration. Can be split up further if
	there's need to do so

-rw-r--r--    1 linux    users        2832 2003-10-04 00:10 cpufreq_governor.c
	cpufreq_governor and friends, and governor {un}registration

-rw-r--r--    1 linux    users        1221 2003-10-04 00:19 cpufreq.h
	prototypes for shared variables and functions

-rw-r--r--    1 linux    users        4913 2003-10-04 00:13 cpufreq_notifiers.c
	cpufreq notifier lists

-rw-r--r--    1 linux    users        7576 2003-10-04 00:14 cpufreq_sysfs.c
	cpufreq sysfs and kobject handling



What's the general opinion about such a split-up?

And what does the public think about this:
Except for a small part [cpufreq_notifiers.c] the rest of the cpufreq core
could be built as a module. drivers/acpi/processor.ko would depend on it,
though [until my ACPI patches are accepted, at least], and it couldn't be
available for a certain ARM architecture IIRC. For x86, it'd make life,
testing, and developing easier.


Third, and last question:
For x86 there is a wide choice of cpufreq drivers. Especially for
distributions and inexperienced users [no pun intended] it might become more
and more difficult to select the best driver: "I got a mobile Pentium-4-M,
p4-clockmod or speedstep-ich?" is one good example. Should the detection of
the "best" cpufreq driver be made available as an optional(!)
"cpufreq-autoload" module in arch/i386/kernel/cpu/cpufreq/?

	Dominik

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [RFC] split up cpufreq.c in several files, x86 autoloader
  2003-10-03 22:36 [RFC] split up cpufreq.c in several files, x86 autoloader Dominik Brodowski
@ 2003-10-03 23:23 ` AthlonRob
  0 siblings, 0 replies; 2+ messages in thread
From: AthlonRob @ 2003-10-03 23:23 UTC (permalink / raw)
  To: cpufreq

On Fri, 2003-10-03 at 15:36, Dominik Brodowski wrote:

> For x86 there is a wide choice of cpufreq drivers. Especially for
> distributions and inexperienced users [no pun intended] it might become more
> and more difficult to select the best driver: "I got a mobile Pentium-4-M,
> p4-clockmod or speedstep-ich?" is one good example. Should the detection of
> the "best" cpufreq driver be made available as an optional(!)
> "cpufreq-autoload" module in arch/i386/kernel/cpu/cpufreq/?

I like that idea, as well as the module idea.

I would be sure and take in to account, however, Dell laptops not
wanting to work with some (all?) drivers in this autoload section.

Rob

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-10-03 23:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-03 22:36 [RFC] split up cpufreq.c in several files, x86 autoloader Dominik Brodowski
2003-10-03 23:23 ` AthlonRob

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.