[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [linux-2.6.18-xen] xenfb: eliminate the update_wanted field.
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1233228538 0 # Node ID 8197c86e67294835c9d90540cf776c373664c3ef # Parent 51decc39e5e73ea201d0b96108f8a893106a6864 xenfb: eliminate the update_wanted field. Signed-off-by: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx> --- drivers/xen/fbfront/xenfb.c | 25 ++++++++++++------------- 1 files changed, 12 insertions(+), 13 deletions(-) diff -r 51decc39e5e7 -r 8197c86e6729 drivers/xen/fbfront/xenfb.c --- a/drivers/xen/fbfront/xenfb.c Wed Jan 28 13:42:09 2009 +0000 +++ b/drivers/xen/fbfront/xenfb.c Thu Jan 29 11:28:58 2009 +0000 @@ -61,7 +61,6 @@ struct xenfb_info int irq; struct xenfb_page *page; unsigned long *mfns; - int update_wanted; /* XENFB_TYPE_UPDATE wanted */ int feature_resize; /* Backend has resize feature */ struct xenfb_resize resize; int resize_dpy; @@ -208,8 +207,6 @@ static void xenfb_update_screen(struct x int y1, y2, x1, x2; struct xenfb_mapping *map; - if (!info->update_wanted) - return; if (xenfb_queue_full(info)) return; @@ -823,22 +820,24 @@ static void xenfb_backend_changed(struct if (dev->state != XenbusStateConnected) goto InitWait; /* no InitWait seen yet, fudge it */ - if (xenbus_scanf(XBT_NIL, info->xbdev->otherend, - "request-update", "%d", &val) < 0) - val = 0; - if (val) - info->update_wanted = 1; if (xenbus_scanf(XBT_NIL, dev->otherend, "feature-resize", "%d", &val) < 0) val = 0; info->feature_resize = val; - info->kthread = kthread_run(xenfb_thread, info, "xenfb thread"); - if (IS_ERR(info->kthread)) { - info->kthread = NULL; - xenbus_dev_fatal(dev, PTR_ERR(info->kthread), - "register_framebuffer"); + if (xenbus_scanf(XBT_NIL, info->xbdev->otherend, + "request-update", "%d", &val) < 0) + val = 0; + + if (val){ + info->kthread = kthread_run(xenfb_thread, info, + "xenfb thread"); + if (IS_ERR(info->kthread)) { + info->kthread = NULL; + xenbus_dev_fatal(dev, PTR_ERR(info->kthread), + "register_framebuffer"); + } } break; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |