Re: [patch 3/3] x86/cpufreq: don't use acpi_processor_get_bios_limit when not available

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I picked that one up or better came to the same fix when I heard powernow-k7
does not compile.
I submitted a new one to Dave fixing several .config related compile errors.

AFAIK Dave's strategy is to let related patches be dropped in linux-next or 
akpm tree and resubmit my single patch with the fixes merged in to have a 
clean git history.

Thanks everybody,

    Thomas

On Tuesday 17 November 2009 11:39:55 pm akpm@xxxxxxxxxxxxxxxxxxxx wrote:
> From: Randy Dunlap <randy.dunlap@xxxxxxxxxx>
>
> Only reference this function when the kconfig makes it available.
>
> Signed-off-by: Randy Dunlap <randy.dunlap@xxxxxxxxxx>
> Cc: Dave Jones <davej@xxxxxxxxxx>
> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> Cc: Ingo Molnar <mingo@xxxxxxxxxx>
> Cc: H. Peter Anvin <hpa@xxxxxxxxx>
> Cc: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
> Cc: Dave Jones <davej@xxxxxxxxxxxxxxxxx>
> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
> ---
>
>  arch/x86/kernel/cpu/cpufreq/powernow-k7.c |    2 ++
>  1 file changed, 2 insertions(+)
>
> diff -puN
> arch/x86/kernel/cpu/cpufreq/powernow-k7.c~x86-cpufreq-dont-use-acpi_process
>or_get_bios_limit-when-not-available
> arch/x86/kernel/cpu/cpufreq/powernow-k7.c ---
> a/arch/x86/kernel/cpu/cpufreq/powernow-k7.c~x86-cpufreq-dont-use-acpi_proce
>ssor_get_bios_limit-when-not-available +++
> a/arch/x86/kernel/cpu/cpufreq/powernow-k7.c
> @@ -717,7 +717,9 @@ static struct cpufreq_driver powernow_dr
>  	.verify		= powernow_verify,
>  	.target		= powernow_target,
>  	.get		= powernow_get,
> +#ifdef CONFIG_X86_POWERNOW_K7_ACPI
>  	.bios_limit	= acpi_processor_get_bios_limit,
> +#endif
>  	.init		= powernow_cpu_init,
>  	.exit		= powernow_cpu_exit,
>  	.name		= "powernow-k7",
> _
> --
> To unsubscribe from this list: send the line "unsubscribe cpufreq" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


--
To unsubscribe from this list: send the line "unsubscribe cpufreq" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Devel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Forum]     [Linux SCSI]

  Powered by Linux