From: Stanislaw Gruszka <sgruszka-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Tejun Heo <tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Stanislaw Gruszka <stf_xl-5tc4TXWwyLM@public.gmane.org>,
linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
David Brown <davidb-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>,
Daniel Walker <dwalker-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>,
Bryan Huntsman <bryanh-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>,
linux-arm-msm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 20/32] video/msm_fb: use system_wq instead of dedicated workqueues
Date: Mon, 3 Jan 2011 18:06:16 +0100 [thread overview]
Message-ID: <20110103170615.GB2285@redhat.com> (raw)
In-Reply-To: <1294062595-30097-21-git-send-email-tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
On Mon, Jan 03, 2011 at 02:49:43PM +0100, Tejun Heo wrote:
> With cmwq, there's no reason to use separate workqueues. Drop
> msmfb_info->resume_workqueue and use system_wq instead.
>
> Signed-off-by: Tejun Heo <tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
> Cc: Stanislaw Gruszka <stf_xl-5tc4TXWwyLM@public.gmane.org>
I'm not the right person, CC according to MAINTAINERS
> Cc: linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> ---
> Only compile tested. Please feel free to take it into the subsystem
> tree or simply ack - I'll route it through the wq tree.
>
> Thanks.
>
> drivers/video/msm/msm_fb.c | 11 +----------
> 1 files changed, 1 insertions(+), 10 deletions(-)
>
> diff --git a/drivers/video/msm/msm_fb.c b/drivers/video/msm/msm_fb.c
> index debe593..5436aeb 100644
> --- a/drivers/video/msm/msm_fb.c
> +++ b/drivers/video/msm/msm_fb.c
> @@ -81,7 +81,6 @@ struct msmfb_info {
> spinlock_t update_lock;
> struct mutex panel_init_lock;
> wait_queue_head_t frame_wq;
> - struct workqueue_struct *resume_workqueue;
> struct work_struct resume_work;
> struct msmfb_callback dma_callback;
> struct msmfb_callback vsync_callback;
> @@ -111,7 +110,7 @@ static void msmfb_handle_dma_interrupt(struct msmfb_callback *callback)
> if (msmfb->sleeping == UPDATING &&
> msmfb->frame_done == msmfb->update_frame) {
> DLOG(SUSPEND_RESUME, "full update completed\n");
> - queue_work(msmfb->resume_workqueue, &msmfb->resume_work);
> + schedule_work(&msmfb->resume_work);
> }
> spin_unlock_irqrestore(&msmfb->update_lock, irq_flags);
> wake_up(&msmfb->frame_wq);
> @@ -559,12 +558,6 @@ static int msmfb_probe(struct platform_device *pdev)
> spin_lock_init(&msmfb->update_lock);
> mutex_init(&msmfb->panel_init_lock);
> init_waitqueue_head(&msmfb->frame_wq);
> - msmfb->resume_workqueue = create_workqueue("panel_on");
> - if (msmfb->resume_workqueue == NULL) {
> - printk(KERN_ERR "failed to create panel_on workqueue\n");
> - ret = -ENOMEM;
> - goto error_create_workqueue;
> - }
> INIT_WORK(&msmfb->resume_work, power_on_panel);
> msmfb->black = kzalloc(msmfb->fb->var.bits_per_pixel*msmfb->xres,
> GFP_KERNEL);
> @@ -589,8 +582,6 @@ static int msmfb_probe(struct platform_device *pdev)
> return 0;
>
> error_register_framebuffer:
> - destroy_workqueue(msmfb->resume_workqueue);
> -error_create_workqueue:
> iounmap(fb->screen_base);
> error_setup_fbmem:
> framebuffer_release(msmfb->fb);
> --
> 1.7.1
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next parent reply other threads:[~2011-01-03 17:06 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1294062595-30097-1-git-send-email-tj@kernel.org>
[not found] ` <1294062595-30097-21-git-send-email-tj@kernel.org>
[not found] ` <1294062595-30097-21-git-send-email-tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2011-01-03 17:06 ` Stanislaw Gruszka [this message]
[not found] ` <20110103170615.GB2285-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2011-01-03 18:10 ` [PATCH 20/32] video/msm_fb: use system_wq instead of dedicated workqueues Daniel Walker
[not found] ` <1294078245.18295.5.camel-y5Owza0q8UhBVvN7MMdr1KRtKmQZhJ7pQQ4Iyu8u01E@public.gmane.org>
2011-01-25 13:45 ` Tejun Heo
[not found] ` <20110125134558.GY27510-Gd/HAXX7CRxy/B6EtB590w@public.gmane.org>
2011-01-25 18:00 ` Daniel Walker
2011-01-25 19:14 ` David Brown
2011-01-25 19:16 ` Daniel Walker
[not found] ` <1295982976.25496.29.camel-y5Owza0q8UhBVvN7MMdr1KRtKmQZhJ7pQQ4Iyu8u01E@public.gmane.org>
2011-01-25 22:08 ` Carl Vanderlip
2011-01-25 23:21 ` David Brown
2011-01-26 10:41 ` Tejun Heo
2011-01-26 18:04 ` David Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110103170615.GB2285@redhat.com \
--to=sgruszka-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=bryanh-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org \
--cc=davidb-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org \
--cc=dwalker-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org \
--cc=linux-arm-msm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=stf_xl-5tc4TXWwyLM@public.gmane.org \
--cc=tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).