All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hollis Blanchard <hollisb@us.ibm.com>
To: Keir Fraser <keir.fraser@xensource.com>
Cc: xen-devel@lists.xensource.com, xen-ppc-devel@lists.xensource.com
Subject: [PATCH 4 of 6] [XEN][LINUX] #ifdef x86-specific alloc_vm_area()
Date: Thu, 05 Jul 2007 16:08:43 -0500	[thread overview]
Message-ID: <4d8b8e9dd58e1de258d7.1183669723@localhost> (raw)
In-Reply-To: <patchbomb.1183669719@localhost>

1 file changed, 3 insertions(+), 7 deletions(-)
drivers/xen/util.c |   10 +++-------


# HG changeset patch
# User Hollis Blanchard <hollisb@us.ibm.com>
# Date 1183669278 18000
# Node ID 4d8b8e9dd58e1de258d7418f5dabf694501b1bd8
# Parent  e2681868041e35f127ee6cb5111317c3a96505e8
[XEN][LINUX] #ifdef x86-specific alloc_vm_area().
Since neither IA64 nor PowerPC wants this code, in the future it should really
be moved out of drivers/xen/
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>

diff -r e2681868041e -r 4d8b8e9dd58e drivers/xen/util.c
--- a/drivers/xen/util.c	Thu Jul 05 16:01:18 2007 -0500
+++ b/drivers/xen/util.c	Thu Jul 05 16:01:18 2007 -0500
@@ -22,9 +22,8 @@ struct class *get_xen_class(void)
 }
 EXPORT_SYMBOL_GPL(get_xen_class);
 
-/* Todo: merge ia64 ('auto-translate physmap') versions of these functions. */
-#ifndef __ia64__
-
+#ifdef CONFIG_X86
+/* Todo: Move these functions into arch-specific code. */
 static int f(pte_t *pte, struct page *pmd_page, unsigned long addr, void *data)
 {
 	/* apply_to_page_range() does all the hard work. */
@@ -50,9 +49,7 @@ struct vm_struct *alloc_vm_area(unsigned
 	}
 
 	/* Map page directories into every address space. */
-#ifdef CONFIG_X86
 	vmalloc_sync_all();
-#endif
 
 	return area;
 }
@@ -66,5 +63,4 @@ void free_vm_area(struct vm_struct *area
 	kfree(area);
 }
 EXPORT_SYMBOL_GPL(free_vm_area);
-
-#endif /* !__ia64__ */
+#endif /* CONFIG_X86 */

  parent reply	other threads:[~2007-07-05 21:08 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-05 21:08 [PATCH 0 of 6] PowerPC Linux patches Hollis Blanchard
2007-07-05 21:08 ` [PATCH 1 of 6] [XEN][LINUX] Add Kconfig option for the balloon driver Hollis Blanchard
2007-07-05 21:08 ` [PATCH 2 of 6] [XEN][LINUX] Create Xen-specific interface for xlate_dev_mem_* Hollis Blanchard
2007-07-05 21:08 ` [PATCH 3 of 6] [XEN][LINUX] Add architecture-generic xencomm infrastructure Hollis Blanchard
2007-07-05 21:29   ` Keir Fraser
2007-07-05 21:35     ` [XenPPC] " Hollis Blanchard
2007-07-05 21:44       ` Keir Fraser
2007-07-05 21:52         ` Hollis Blanchard
2007-07-05 21:08 ` Hollis Blanchard [this message]
2007-07-05 21:38   ` [PATCH 4 of 6] [XEN][LINUX] #ifdef x86-specific alloc_vm_area() Keir Fraser
2007-07-05 21:08 ` [PATCH 5 of 6] [XEN][LINUX] Refactor grant table allocation into arch-specific code Hollis Blanchard
2007-07-05 21:08 ` [PATCH 6 of 6] [XEN][LINUX] Add 32-bit privcmd ioctl conversion for 64-bit kernels Hollis Blanchard
2007-07-05 21:35   ` Keir Fraser
2007-07-05 21:41 ` [PATCH 0 of 6] PowerPC Linux patches Keir Fraser
2007-07-05 21:54   ` [XenPPC] " Hollis Blanchard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4d8b8e9dd58e1de258d7.1183669723@localhost \
    --to=hollisb@us.ibm.com \
    --cc=keir.fraser@xensource.com \
    --cc=xen-devel@lists.xensource.com \
    --cc=xen-ppc-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.