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-changelog

[Xen-changelog] [xen-unstable] [IA64] Idle domain doesn't need to save a

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [IA64] Idle domain doesn't need to save and restore fph
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 09 Dec 2006 15:42:57 +0000
Delivery-date: Sat, 09 Dec 2006 07:43:19 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User awilliam@xxxxxxxxxxx
# Node ID 7e7846ea4ab321e6d6b7ad34bbcd808cd2bbcfff
# Parent  b39844e292f66762a02b2080c0f04b5e7bc58ead
[IA64] Idle domain doesn't need to save and restore fph

Signed-off-by: Anthony Xu <anthony.xu@xxxxxxxxx>
---
 xen/arch/ia64/xen/domain.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff -r b39844e292f6 -r 7e7846ea4ab3 xen/arch/ia64/xen/domain.c
--- a/xen/arch/ia64/xen/domain.c        Mon Nov 27 09:26:15 2006 -0700
+++ b/xen/arch/ia64/xen/domain.c        Mon Nov 27 10:10:57 2006 -0700
@@ -164,8 +164,11 @@ void context_switch(struct vcpu *prev, s
 
     local_irq_save(spsr);
 
-    __ia64_save_fpu(prev->arch._thread.fph);
-    __ia64_load_fpu(next->arch._thread.fph);
+    if (!is_idle_domain(prev->domain)) 
+        __ia64_save_fpu(prev->arch._thread.fph);
+    if (!is_idle_domain(next->domain)) 
+        __ia64_load_fpu(next->arch._thread.fph);
+
     if (VMX_DOMAIN(prev)) {
        vmx_save_state(prev);
        if (!VMX_DOMAIN(next)) {

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [IA64] Idle domain doesn't need to save and restore fph, Xen patchbot-unstable <=