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

[PATCH 2][Xen-devel] Cpufreq: prevent negative px resident time, add spi

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [PATCH 2][Xen-devel] Cpufreq: prevent negative px resident time, add spinlock to avoid race
From: "Liu, Jinsong" <jinsong.liu@xxxxxxxxx>
Date: Wed, 31 Dec 2008 19:19:06 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Delivery-date: Wed, 31 Dec 2008 03:19:36 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AclrOZgPTxb9krRTRg6IHwl4tTIn4A==
Thread-topic: [PATCH 2][Xen-devel] Cpufreq: prevent negative px resident time, add spinlock to avoid race
Cpufreq: prevent negative px resident time, add spinlock to avoid race

Due to NOW() value may drift between different cpus, we add protection to 
prevent negative px resident time.
Due to both cpufreq logic and xenpm may race accessing cpufreq_statistic_data, 
we add spinlock to avoid race.

Signed-off-by: Liu, Jinsong <jinsong.liu@xxxxxxxxx>

Attachment: px-xen-2-statisitic-update.patch
Description: px-xen-2-statisitic-update.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH 2][Xen-devel] Cpufreq: prevent negative px resident time, add spinlock to avoid race, Liu, Jinsong <=