From: Ben Widawsky Subject: Semaphore cleanups Date: Thu, 15 Sep 2011 19:08:56 -0700 Message-ID: <1316138941-6537-1-git-send-email-ben@bwidawsk.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from cloud01.chad-versace.us (184-106-247-128.static.cloud-ips.com [184.106.247.128]) by gabe.freedesktop.org (Postfix) with ESMTP id 1F3B69E771 for ; Thu, 15 Sep 2011 19:08:45 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by cloud01.chad-versace.us (Postfix) with ESMTP id 3C7001D42AF for ; Fri, 16 Sep 2011 02:12:14 +0000 (UTC) Received: from cloud01.chad-versace.us ([127.0.0.1]) by localhost (cloud01.static.cloud-ips.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fYfFcxEMPKMC for ; Fri, 16 Sep 2011 02:12:13 +0000 (UTC) Received: from localhost.localdomain (static-50-53-41-91.bvtn.or.frontiernet.net [50.53.41.91]) by cloud01.chad-versace.us (Postfix) with ESMTPSA id 48CC71D4088 for ; Fri, 16 Sep 2011 02:12:13 +0000 (UTC) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org FWIW, I thought my original patch was the easiest to read, but this certainly removes the most magic. These had a ton of input from Daniel Vetter, and Chris Wilson. The goal is only to make the code more readable, and easier to veryify/debug. drivers/gpu/drm/i915/i915_debugfs.c | 10 ++-- drivers/gpu/drm/i915/i915_gem_execbuffer.c | 4 +- drivers/gpu/drm/i915/i915_reg.h | 24 +++++++++- drivers/gpu/drm/i915/i915_trace.h | 61 +++++++++++++++++++++++++ drivers/gpu/drm/i915/intel_ringbuffer.c | 66 +++++++++++++++------------ drivers/gpu/drm/i915/intel_ringbuffer.h | 57 +++++++++++++----------- 6 files changed, 157 insertions(+), 65 deletions(-)