Magellan Linux

Contents of /tags/kernel26-xen-2_6_25_r1-fedora9-patches/kernel26-xen/patches-2.6.25-r1/1114-2.6.25-xen-Disable-the-weird-count-loop-on-kcons_write_dom0.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 608 - (show annotations) (download)
Fri May 23 12:17:32 2008 UTC (16 years, 1 month ago) by (unknown author)
File size: 956 byte(s)
This commit was manufactured by cvs2svn to create tag
'kernel26-xen-2_6_25_r1-fedora9-patches'.
1 From f45512d78f1740ced58abdb24f7daa9b1ecdfcf6 Mon Sep 17 00:00:00 2001
2 From: Eduardo Habkost <ehabkost@redhat.com>
3 Date: Wed, 23 Jan 2008 15:15:34 -0200
4 Subject: [PATCH] Disable the weird count loop on kcons_write_dom0()
5
6 Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
7 ---
8 arch/x86/xen/enlighten.c | 4 ++++
9 1 files changed, 4 insertions(+), 0 deletions(-)
10
11 diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
12 index 83aaa69..b46529a 100644
13 --- a/arch/x86/xen/enlighten.c
14 +++ b/arch/x86/xen/enlighten.c
15 @@ -149,6 +149,7 @@ static void __init xen_vcpu_setup(int cpu)
16
17 static void kcons_write_dom0(const char *s, unsigned int count)
18 {
19 +#if 0
20 int rc;
21
22 while ((count > 0) &&
23 @@ -157,6 +158,9 @@ static void kcons_write_dom0(const char *s, unsigned int count)
24 count -= rc;
25 s += rc;
26 }
27 +#else
28 + HYPERVISOR_console_io(CONSOLEIO_write, count, (char *)s);
29 +#endif
30 }
31
32
33 --
34 1.5.4.1
35