Imported xen patches.
[people/pmueller/ipfire-2.x.git] / src / patches / 60018_737-kexec-free.patch1
1 From: http://xenbits.xensource.com/linux-2.6.18-xen.hg?rev/6bb7f500d5e4
2 # HG changeset 737 patch
3 # User Keir Fraser <keir.fraser@citrix.com>
4 # Date 1227611796 0
5 # Node ID 6bb7f500d5e4a68007607863fa7bfe0c69d6eec7
6 # Parent 1b68d09b868fdcd724c6b86eb2790748a9fd0bb7
7 Subject: kexec: Don't pass limit_pages_to_max_mfn() regions to xen_destroy_contiguous_region().
8 Patch-mainline: obsolete
9
10 Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
11 Acked-by: jbeulich@novell.com
12
13 Index: head-2008-11-25/kernel/kexec.c
14 ===================================================================
15 --- head-2008-11-25.orig/kernel/kexec.c 2008-11-25 12:35:50.000000000 +0100
16 +++ head-2008-11-25/kernel/kexec.c 2008-11-25 13:31:12.000000000 +0100
17 @@ -397,9 +397,6 @@ static void kimage_free_pages(struct pag
18 count = 1 << order;
19 for (i = 0; i < count; i++)
20 ClearPageReserved(page + i);
21 -#ifdef CONFIG_XEN
22 - xen_destroy_contiguous_region((unsigned long)page_address(page), order);
23 -#endif
24 __free_pages(page, order);
25 }
26