readd arch_free_page which should be arch dependent header file.
Without this patch, bad_page() of linux may be hit.


FYI:
linux-2.6.18-xen/drivers/oprofile/oprof.c doesn't compile.

--- linux-2.6.18-xen/drivers/oprofile/oprof.c.orig      2007-01-31 
16:16:18.000000000 +0900
+++ linux-2.6.18-xen/drivers/oprofile/oprof.c   2007-01-31 16:16:37.000000000 
+0900
@@ -44,9 +44,9 @@ int oprofile_set_active(int active_domai
        if (!oprofile_ops.set_active)
                return -EINVAL;
 
-       down(&start_sem);
+       down(&start_mutex);
        err = oprofile_ops.set_active(active_domains, adomains);
-       up(&start_sem);
+       up(&start_mutex);
        return err;
 }
 
@@ -57,9 +57,9 @@ int oprofile_set_passive(int passive_dom
        if (!oprofile_ops.set_passive)
                return -EINVAL;
 
-       down(&start_sem);
+       down(&start_mutex);
        err = oprofile_ops.set_passive(passive_domains, pdomains);
-       up(&start_sem);
+       up(&start_mutex);
        return err;
 }


On Mon, Jan 29, 2007 at 04:14:17PM +0900, Isaku Yamahata wrote:
> On Sun, Jan 28, 2007 at 05:10:56PM -0700, Alex Williamson wrote:
> > Isaku may want to have a look at 13673 to make sure this code
> > is no longer need. 
> 
> Thank you for taking care of it.
> c/s 13673 looks good.
> 
> -- 
> yamahata
> 
> _______________________________________________
> Xen-ia64-devel mailing list
> [email protected]
> http://lists.xensource.com/xen-ia64-devel
> 

-- 
yamahata
# HG changeset patch
# User [EMAIL PROTECTED]
# Date 1170228079 -32400
# Node ID 616c11fb399857339f3f4c12b1e9c0daf97a4a8c
# Parent  2c6f756566f983a0a7c58d28a6720d5654c8a41f
readd arch_free_page which should be arch dependent header file.
PATCHNAME: readd_arch_free_page

Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]>

diff -r 2c6f756566f9 -r 616c11fb3998 linux-2.6-xen-sparse/include/asm-ia64/page.h
--- a/linux-2.6-xen-sparse/include/asm-ia64/page.h	Tue Jan 30 21:10:40 2007 +0900
+++ b/linux-2.6-xen-sparse/include/asm-ia64/page.h	Wed Jan 31 16:21:19 2007 +0900
@@ -238,6 +238,14 @@ get_order (unsigned long size)
 #include <xen/features.h>	// to compile netback, netfront
 #include <asm/maddr.h>
 
+#define arch_free_page(_page,_order)		\
+({     int foreign = PageForeign(_page);	\
+	if (foreign)                            \
+		PageForeignDestructor(_page);   \
+	foreign;                                \
+})
+#define HAVE_ARCH_FREE_PAGE
+
 #endif /* CONFIG_XEN */
 #endif /* __ASSEMBLY__ */
 
_______________________________________________
Xen-ia64-devel mailing list
[email protected]
http://lists.xensource.com/xen-ia64-devel

Reply via email to