ia64/linux-2.6.18-xen.hg

changeset 785:8197c86e6729

xenfb: eliminate the update_wanted field.

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jan 29 11:28:58 2009 +0000 (2009-01-29)
parents 51decc39e5e7
children b790b287bf47
files drivers/xen/fbfront/xenfb.c
line diff
     1.1 --- a/drivers/xen/fbfront/xenfb.c	Wed Jan 28 13:42:09 2009 +0000
     1.2 +++ b/drivers/xen/fbfront/xenfb.c	Thu Jan 29 11:28:58 2009 +0000
     1.3 @@ -61,7 +61,6 @@ struct xenfb_info
     1.4  	int			irq;
     1.5  	struct xenfb_page	*page;
     1.6  	unsigned long 		*mfns;
     1.7 -	int			update_wanted; /* XENFB_TYPE_UPDATE wanted */
     1.8  	int			feature_resize; /* Backend has resize feature */
     1.9  	struct xenfb_resize	resize;
    1.10  	int			resize_dpy;
    1.11 @@ -208,8 +207,6 @@ static void xenfb_update_screen(struct x
    1.12  	int y1, y2, x1, x2;
    1.13  	struct xenfb_mapping *map;
    1.14  
    1.15 -	if (!info->update_wanted)
    1.16 -		return;
    1.17  	if (xenfb_queue_full(info))
    1.18  		return;
    1.19  
    1.20 @@ -823,22 +820,24 @@ static void xenfb_backend_changed(struct
    1.21  		if (dev->state != XenbusStateConnected)
    1.22  			goto InitWait; /* no InitWait seen yet, fudge it */
    1.23  
    1.24 -		if (xenbus_scanf(XBT_NIL, info->xbdev->otherend,
    1.25 -				 "request-update", "%d", &val) < 0)
    1.26 -			val = 0;
    1.27 -		if (val)
    1.28 -			info->update_wanted = 1;
    1.29  
    1.30  		if (xenbus_scanf(XBT_NIL, dev->otherend,
    1.31  					"feature-resize", "%d", &val) < 0)
    1.32  			val = 0;
    1.33  		info->feature_resize = val;
    1.34  
    1.35 -		info->kthread = kthread_run(xenfb_thread, info, "xenfb thread");
    1.36 -		if (IS_ERR(info->kthread)) {
    1.37 -			info->kthread = NULL;
    1.38 -			xenbus_dev_fatal(dev, PTR_ERR(info->kthread),
    1.39 -					"register_framebuffer");
    1.40 +		if (xenbus_scanf(XBT_NIL, info->xbdev->otherend,
    1.41 +				 "request-update", "%d", &val) < 0)
    1.42 +			val = 0;
    1.43 +
    1.44 +		if (val){
    1.45 +			info->kthread = kthread_run(xenfb_thread, info,
    1.46 +						    "xenfb thread");
    1.47 +			if (IS_ERR(info->kthread)) {
    1.48 +				info->kthread = NULL;
    1.49 +				xenbus_dev_fatal(dev, PTR_ERR(info->kthread),
    1.50 +						"register_framebuffer");
    1.51 +			}
    1.52  		}
    1.53  		break;
    1.54