Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753983AbXFVEFt (ORCPT ); Fri, 22 Jun 2007 00:05:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751819AbXFVEEQ (ORCPT ); Fri, 22 Jun 2007 00:04:16 -0400 Received: from ms-smtp-04.nyroc.rr.com ([24.24.2.58]:62044 "EHLO ms-smtp-04.nyroc.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751776AbXFVEEP (ORCPT ); Fri, 22 Jun 2007 00:04:15 -0400 Message-Id: <20070622040137.104281523@goodmis.org> References: <20070622040014.234651401@goodmis.org> User-Agent: quilt/0.46-1 Date: Fri, 22 Jun 2007 00:00:18 -0400 From: Steven Rostedt To: LKML Cc: Linus Torvalds , Ingo Molnar , Andrew Morton , Thomas Gleixner , Christoph Hellwig , john stultz , Oleg Nesterov , "Paul E. McKenney" , Dipankar Sarma , "David S. Miller" , matthew.wilcox@hp.com, kuznet@ms2.inr.ac.ru Subject: [RFC PATCH 4/6] Make DRM use the tasklet is-sched API Content-Disposition: inline; filename=tasklet-driver-hacks.patch Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 981 Lines: 26 Update the DRM driver to use the new tasklet API, which does not rely on the tasklet implementation details. Signed-off-by: Steven Rostedt Index: linux-2.6.21-rt9/drivers/char/drm/drm_irq.c =================================================================== --- linux-2.6.21-rt9.orig/drivers/char/drm/drm_irq.c +++ linux-2.6.21-rt9/drivers/char/drm/drm_irq.c @@ -461,7 +461,7 @@ void drm_locked_tasklet(drm_device_t *de static DECLARE_TASKLET(drm_tasklet, drm_locked_tasklet_func, 0); if (!drm_core_check_feature(dev, DRIVER_HAVE_IRQ) || - test_bit(TASKLET_STATE_SCHED, &drm_tasklet.state)) + tasklet_is_scheduled(&drm_tasklet)) return; spin_lock_irqsave(&dev->tasklet_lock, irqflags); -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/