|
|
|
|
|
|
|
|
|
|
xen-ppc-devel
[XenPPC] [linux-ppc-2.6] [POWERPC] SCHEDOP_block instead of spinning whe
# 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 <=
|
|
|
|
|