WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] Create a linux-2.6.18-xen.hg Kernel with CPU_FREQ suppor

To: 'Carsten Schiers' <carsten@xxxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] Create a linux-2.6.18-xen.hg Kernel with CPU_FREQ support
From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
Date: Wed, 14 Jan 2009 10:07:57 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc:
Delivery-date: Tue, 13 Jan 2009 18:09:05 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <H0000067000180c4.1231881383.uhura.space.zz@MHS>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <H0000067000180c4.1231881383.uhura.space.zz@MHS>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acl1xFPG7cDvENPpRkeeTYhHp+c6CgAJA9MA
Thread-topic: [Xen-devel] Create a linux-2.6.18-xen.hg Kernel with CPU_FREQ support
>From: Carsten Schiers
>Sent: Wednesday, January 14, 2009 5:16 AM
>
>Excuse my missing knowledge, but how do I enable CPU_FREQ support when 
>building Xen 
>hypervisor and especially the kernel from sources? When doing e.g. a
>
>  hg clone http://xenbits.xensource.com/xen-unstable.hg
>  make world
>
>the resulting kernel will now create e.g. powernow-k8.ko. 
>
>When I do a
>
>  make linux-2.6-xen-prep
>  cd build-linux-2.6.18-xen_x86_64
>  make menuconfig
>
>all CPU_FREQ options are not accessable. 
>
>Thanks,
>Carsten.
>

It's intentional since Xen itself supports cpufreq now. To avoid 
dependency on dom0's CONFIG_CPU_FREQ and also intrusive 
checks on whether external control is enabled in every linux
cpufreq drivers, CPU_FREQ in dom0 is silented by default now.
It's not a neat approach, but makes sense since xen controlled
cpufreq is sure a better model. You can enable CPU_FREQ in
dom0 manually though, by removing below dependency.

(drivers/cpufreq/Kconfig)
 config CPU_FREQ
        bool "CPU Frequency scaling"
---->  depends on !PROCESSOR_EXTERNAL_CONTROL

However once that dependency is removed, there's no automatic
check to avoid confliction when dom0 and xen both want to
control freq change, and then you should keep an eye yourself.

One alternative to relax this limitation, is to move external control 
check up from drivers to cpufreq common layer. Just several lines 
change to block dom0 cpufreq when xen controlled method is 
activated, but one drawback is in architecture-neutral files. Comments?

Thanks,
Kevin
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>