ia64/xen-unstable

changeset 3351:1b41e54d74f6

bitkeeper revision 1.1159.170.73 (41d410a5UNN19EUanWSnfJ52P1DlQw)

remove unused fn
author smh22@tempest.cl.cam.ac.uk
date Thu Dec 30 14:28:53 2004 +0000 (2004-12-30)
parents e57bbce13b4a
children 789b10e9b58b 7f2bf9fecd7e 90e836e2735c
files BitKeeper/etc/ignore xen/arch/x86/e820.c
line diff
     1.1 --- a/BitKeeper/etc/ignore	Thu Dec 30 11:46:55 2004 +0000
     1.2 +++ b/BitKeeper/etc/ignore	Thu Dec 30 14:28:53 2004 +0000
     1.3 @@ -88,3 +88,4 @@ install/*
     1.4  patches/ebtables-brnf-5_vs_2.4.25.diff
     1.5  patches/ebtables.diff
     1.6  tools/x2d2/minixend
     1.7 +BLOG
     2.1 --- a/xen/arch/x86/e820.c	Thu Dec 30 11:46:55 2004 +0000
     2.2 +++ b/xen/arch/x86/e820.c	Thu Dec 30 14:28:53 2004 +0000
     2.3 @@ -5,40 +5,6 @@
     2.4  
     2.5  struct e820map e820;
     2.6  
     2.7 -static void __init limit_regions(unsigned long long size)
     2.8 -{
     2.9 -    unsigned long long current_addr = 0;
    2.10 -    int i;
    2.11 -
    2.12 -#if 0
    2.13 -    if (efi_enabled) {
    2.14 -        for (i = 0; i < memmap.nr_map; i++) {
    2.15 -            current_addr = memmap.map[i].phys_addr +
    2.16 -                (memmap.map[i].num_pages << 12);
    2.17 -            if (memmap.map[i].type == EFI_CONVENTIONAL_MEMORY) {
    2.18 -                if (current_addr >= size) {
    2.19 -                    memmap.map[i].num_pages -=
    2.20 -                        (((current_addr-size) + PAGE_SIZE-1) >> PAGE_SHIFT);
    2.21 -                    memmap.nr_map = i + 1;
    2.22 -                    return;
    2.23 -                }
    2.24 -            }
    2.25 -        }
    2.26 -    }
    2.27 -#endif
    2.28 -
    2.29 -    for (i = 0; i < e820.nr_map; i++) {
    2.30 -        if (e820.map[i].type == E820_RAM) {
    2.31 -            current_addr = e820.map[i].addr + e820.map[i].size;
    2.32 -            if (current_addr >= size) {
    2.33 -                e820.map[i].size -= current_addr-size;
    2.34 -                e820.nr_map = i + 1;
    2.35 -                return;
    2.36 -            }
    2.37 -        }
    2.38 -    }
    2.39 -}
    2.40 -
    2.41  static void __init add_memory_region(unsigned long long start,
    2.42                                       unsigned long long size, int type)
    2.43  {