ia64/xen-unstable

changeset 11214:cadf1df88d3e

[BALLOON] Make /proc/xen/ballon contain driver_pages (aka "driver headroom") unconditionally.

Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
author kaf24@localhost.localdomain
date Sat Aug 19 10:17:48 2006 +0100 (2006-08-19)
parents 1818ea221bfe
children 3fc16c39f15e
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	Sat Aug 19 10:15:01 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c	Sat Aug 19 10:17:48 2006 +0100
     1.3 @@ -440,20 +440,16 @@ static int balloon_read(char *page, char
     1.4  		"Requested target:   %8lu kB\n"
     1.5  		"Low-mem balloon:    %8lu kB\n"
     1.6  		"High-mem balloon:   %8lu kB\n"
     1.7 +		"Driver pages:       %8lu kB\n"
     1.8  		"Xen hard limit:     ",
     1.9  		PAGES2KB(current_pages), PAGES2KB(target_pages), 
    1.10 -		PAGES2KB(balloon_low), PAGES2KB(balloon_high));
    1.11 +		PAGES2KB(balloon_low), PAGES2KB(balloon_high),
    1.12 +		PAGES2KB(driver_pages));
    1.13  
    1.14 -	if (hard_limit != ~0UL) {
    1.15 -		len += sprintf(
    1.16 -			page + len, 
    1.17 -			"%8lu kB (inc. %8lu kB driver headroom)\n",
    1.18 -			PAGES2KB(hard_limit), PAGES2KB(driver_pages));
    1.19 -	} else {
    1.20 -		len += sprintf(
    1.21 -			page + len,
    1.22 -			"     ??? kB\n");
    1.23 -	}
    1.24 +	if (hard_limit != ~0UL)
    1.25 +		len += sprintf(page + len, "%8lu kB\n", PAGES2KB(hard_limit));
    1.26 +	else
    1.27 +		len += sprintf(page + len, "     ??? kB\n");
    1.28  
    1.29  	*eof = 1;
    1.30  	return len;