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-ppc-devel

[XenPPC] [linux-ppc-2.6] [POWERPC] SCHEDOP_block instead of spinning whe

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [linux-ppc-2.6] [POWERPC] SCHEDOP_block instead of spinning when waiting for input
From: Xen patchbot-linux-ppc-2.6 <patchbot-linux-ppc-2.6@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 09 Aug 2006 23:02:01 +0000
Delivery-date: Wed, 09 Aug 2006 16:06:23 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID 8e6d4f43d13f5d1fce90823cbd35f9541cac4721
# Parent  e4a11039ee9ec7b0b728981fc7b0a6c0c972b0e4
[POWERPC] SCHEDOP_block instead of spinning when waiting for input

Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
---
 arch/powerpc/platforms/xen/udbg_xen.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff -r e4a11039ee9e -r 8e6d4f43d13f arch/powerpc/platforms/xen/udbg_xen.c
--- a/arch/powerpc/platforms/xen/udbg_xen.c     Tue Aug 08 09:36:48 2006 -0400
+++ b/arch/powerpc/platforms/xen/udbg_xen.c     Wed Aug 09 18:15:53 2006 -0400
@@ -52,10 +52,9 @@ static int udbg_getc_dom0_xen(void)
        for (;;) {
                ch = udbg_getc_poll_dom0_xen();
                if (ch == -1) {
-                       /* This shouldn't be needed...but... */
-                       volatile unsigned long delay;
-                       for (delay=0; delay < 2000000; delay++)
-                               ;
+                       /* nano seconds */
+                       HYPERVISOR_set_timer_op(100000000);
+                       HYPERVISOR_sched_op(SCHEDOP_block, NULL);
                } else {
                        return ch;
                }

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

<Prev in Thread] Current Thread [Next in Thread>
  • [XenPPC] [linux-ppc-2.6] [POWERPC] SCHEDOP_block instead of spinning when waiting for input, Xen patchbot-linux-ppc-2 . 6 <=