ia64/xen-unstable

changeset 7004:a498dab0beef

Match change to the memory/target value, as it is now in KiB, not bytes.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@ewan
date Wed Sep 21 15:12:32 2005 +0100 (2005-09-21)
parents 82bc05411d85
children 19572dec7d3c
files linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c	Wed Sep 21 11:31:55 2005 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c	Wed Sep 21 15:12:32 2005 +0100
     1.3 @@ -362,7 +362,10 @@ static void watch_target(struct xenbus_w
     1.4  		return;
     1.5  	} 
     1.6          
     1.7 -	set_new_target(new_target >> PAGE_SHIFT);
     1.8 +	/* The given memory/target value is in KiB, so it needs converting to
     1.9 +	   pages.  PAGE_SHIFT converts bytes to pages, hence PAGE_SHIFT - 10.
    1.10 +	*/
    1.11 +	set_new_target(new_target >> (PAGE_SHIFT - 10));
    1.12      
    1.13  }
    1.14