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] [PATCH] cpufreq: remove unused variable cpu_count.

To: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH] cpufreq: remove unused variable cpu_count.
From: "Yu, Ke" <ke.yu@xxxxxxxxx>
Date: Fri, 10 Oct 2008 12:59:07 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: "Lu, Guanqun" <guanqun.lu@xxxxxxxxx>
Delivery-date: Thu, 09 Oct 2008 22:01:30 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20081010023333.GE15928%yamahata@xxxxxxxxxxxxx>
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: <20081010023333.GE15928%yamahata@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AckqgKh5mN7RHi6DQe6R/pkdcUNLoAAFDj3A
Thread-topic: [Xen-devel] [PATCH] cpufreq: remove unused variable cpu_count.
ACKed

Best Regards
Ke

Isaku Yamahata wrote:
> cpufreq: remove unused variable cpu_count.
>
> cpu_count isn't used so remove it.
>
> Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
>
> diff -r 6f5ff1301ae8 xen/drivers/cpufreq/cpufreq.c
> --- a/xen/drivers/cpufreq/cpufreq.c     Fri Oct 10 11:31:55 2008 +0900
> +++ b/xen/drivers/cpufreq/cpufreq.c     Fri Oct 10 11:32:40 2008 +0900
> @@ -213,7 +213,7 @@
>
>  int set_px_pminfo(uint32_t acpi_id, struct xen_processor_performance
>  *dom0_px_info) {
> -    int cpu_count = 0, ret=0, cpuid;
> +    int ret=0, cpuid;
>      struct processor_pminfo *pmpt;
>      struct processor_performance *pxpt;
>
> @@ -298,7 +298,6 @@
>                  XEN_PX_PSD | XEN_PX_PPC ) )
>      {
>          pxpt->init = XEN_PX_INIT;
> -        cpu_count++;
>
>          ret = cpufreq_cpu_init(cpuid);
>          goto out;


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

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