ia64/xen-unstable

diff xen/common/kexec.c @ 12835:58284e749407

Remove unused KEXEC_RANGE_VA_XEN.

KEXEC_RANGE_VA_XEN is currently unused and there is no point in exporting it.

Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>
---

Applies to xen-unstable-12756

xen/common/kexec.c | 13 +++----------
xen/include/public/kexec.h | 3 +--
2 files changed, 4 insertions(+), 12 deletions(-)
author Ian Campbell <ian.campbell@xensource.com>
date Thu Dec 07 11:43:19 2006 +0000 (2006-12-07)
parents b08b870770f9
children de69059a1f0e
line diff
     1.1 --- a/xen/common/kexec.c	Thu Dec 07 11:36:26 2006 +0000
     1.2 +++ b/xen/common/kexec.c	Thu Dec 07 11:43:19 2006 +0000
     1.3 @@ -160,13 +160,9 @@ static int kexec_get_reserve(xen_kexec_r
     1.4  
     1.5  extern unsigned long _text;
     1.6  
     1.7 -static int kexec_get_xen(xen_kexec_range_t *range, int get_ma)
     1.8 +static int kexec_get_xen(xen_kexec_range_t *range)
     1.9  {
    1.10 -    if ( get_ma )
    1.11 -        range->start = virt_to_maddr(&_text);
    1.12 -    else
    1.13 -        range->start = (unsigned long) &_text;
    1.14 -
    1.15 +    range->start = virt_to_maddr(&_text);
    1.16      range->size = (unsigned long)&_end - (unsigned long)&_text;
    1.17      return 0;
    1.18  }
    1.19 @@ -195,10 +191,7 @@ static int kexec_get_range(XEN_GUEST_HAN
    1.20          ret = kexec_get_reserve(&range);
    1.21          break;
    1.22      case KEXEC_RANGE_MA_XEN:
    1.23 -        ret = kexec_get_xen(&range, 1);
    1.24 -        break;
    1.25 -    case KEXEC_RANGE_VA_XEN:
    1.26 -        ret = kexec_get_xen(&range, 0);
    1.27 +        ret = kexec_get_xen(&range);
    1.28          break;
    1.29      case KEXEC_RANGE_MA_CPU:
    1.30          ret = kexec_get_cpu(&range);