Re: [PATCH] cpufreq: move frequency table helpers to extra module

Roman Zippel (zippel@linux-m68k.org)
Thu, 13 Feb 2003 11:17:58 +0100 (CET)


Hi,

On Thu, 13 Feb 2003, Dominik Brodowski wrote:

> +config CPU_FREQ_TABLE
> + tristate "CPU frequency table helpers"
> + depends on CPU_FREQ
> + default y
> + help
> + Many CPUFreq drivers use these helpers, so only say N here if
> + the CPUFreq driver of your choice doesn't need these helpers.
> +
> + If in doubt, say Y.
> +
> config X86_ACPI_CPUFREQ
> tristate "ACPI Processor P-States driver"
> - depends on CPU_FREQ && ACPI_PROCESSOR
> + depends on CPU_FREQ && ACPI_PROCESSOR && CPU_FREQ_TABLE
> help
> This driver adds a CPUFreq driver which utilizes the ACPI
> Processor Performance States.

If CPU_FREQ_TABLE itself depends on CPU_FREQ, then X86_ACPI_CPUFREQ
automatically depends on CPU_FREQ too, so you can remove CPU_FREQ from the
dependency list.
You can also put X86_ACPI_CPUFREQ and all following options, which depend
on CPU_FREQ_TABLE, within an "if CPU_FREQ_TABLE" ... "endif" block.

bye, Roman

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