]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Rename __force_wake_get to __force_wake_auto
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 24 Mar 2016 14:31:47 +0000 (14:31 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 30 Mar 2016 11:02:21 +0000 (12:02 +0100)
commitaceacf100fba24e4fb49dee78205f648b222b302
tree8719d0331a9041c75a4600daab54e30c8cb73b39
parent1b9563ac32764b5019cd8580c4b3e0721d1860c7
drm/i915: Rename __force_wake_get to __force_wake_auto

__force_wake_get() only acquires a temporary wakeref on forcewake that is
automatically released when a timer expires. When reading the code
again, I confused __intel_uncore_forcewake_get() for __force_wake_get()
and to my shame thought I found a bug in unbalanced wake_count handling.

I claim that if the function had been called __force_wake_auto() instead
I would not have embarrassed myself.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1458829907-26596-1-git-send-email-chris@chris-wilson.co.uk
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
drivers/gpu/drm/i915/intel_uncore.c