From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Airlie Subject: Re: [PATCH 09/32] drm/radeon: use system_wq instead of dev_priv->wq Date: Thu, 06 Jan 2011 14:31:39 +1000 Message-ID: <1294288300.8921.0.camel@clockmaker-el6> References: <1294062595-30097-1-git-send-email-tj@kernel.org> <1294062595-30097-10-git-send-email-tj@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by gabe.freedesktop.org (Postfix) with ESMTP id 6772F9EF65 for ; Wed, 5 Jan 2011 20:32:06 -0800 (PST) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Alex Deucher Cc: Tejun Heo , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org On Tue, 2011-01-04 at 19:21 -0500, Alex Deucher wrote: > On Mon, Jan 3, 2011 at 8:49 AM, Tejun Heo wrote: > > With cmwq, there's no reason for radeon to use a dedicated workqueue. > > Drop dev_priv->wq and use system_wq instead. > > > > Because radeon_driver_irq_uninstall_kms() may be called from > > unsleepable context, the work items can't be flushed from there. > > Instead, init and flush from radeon_irq_kms_init/fini(). > > > > While at it, simplify canceling/flushing of rdev->pm.dynpm_idle_work. > > Always initialize and sync cancel instead of being unnecessarily smart > > about it. > > > > Signed-off-by: Tejun Heo > > Cc: David Airlie > > Cc: dri-devel@lists.freedesktop.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. > > Patch looks good to me. I'm not sure what's the best way to send this > upstream. I'm working on some irq changes in the same area now, so > I'd prefer if we pushed it through Dave's tree, but I can handle it > either way. I'll pull it into my tree for merging to Linus. Dave. > > Acked-by: Alex Deucher >