]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
cpufreq: add cpufreq_get() stub for CONFIG_CPU_FREQ=n
authorRandy Dunlap <randy.dunlap@oracle.com>
Mon, 26 Oct 2009 23:49:29 +0000 (16:49 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 29 Oct 2009 14:39:24 +0000 (07:39 -0700)
commit2eca40a8ccd4160dbfaa5cbd61038d921d0e5f13
treee4136b7e9c87486f12643b9389f11de718cb2bb2
parent964fe080d94db82a3268443e9b9ece4c60246414
cpufreq: add cpufreq_get() stub for CONFIG_CPU_FREQ=n

When CONFIG_CPU_FREQ is disabled, cpufreq_get() needs a stub.  Used by kvm
(although it looks like a bit of the kvm code could be omitted when
CONFIG_CPU_FREQ is disabled).

arch/x86/built-in.o: In function `kvm_arch_init':
(.text+0x10de7): undefined reference to `cpufreq_get'

(Needed in linux-next's KVM tree, but it's correct in 2.6.32).

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Tested-by: Eric Paris <eparis@redhat.com>
Cc: Jiri Slaby <jirislaby@gmail.com>
Cc: Avi Kivity <avi@redhat.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Dave Jones <davej@codemonkey.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/cpufreq.h