From: Daniel Vetter Date: Mon, 15 Sep 2014 12:55:23 +0000 (+0200) Subject: drm/i915: Clarify event_lock locking, irq&mixed context X-Git-Tag: omap-for-v3.19/fixes-rc1~80^2~79^2~51 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f326038a29092534b59626f736a3c6e599bda017;p=pandora-kernel.git drm/i915: Clarify event_lock locking, irq&mixed context Now we tackle the functions also called from interrupt handlers. - intel_check_page_flip is exclusively called from irq handlers, so a plain spin_lock is all we need. In i915_irq.c we have the convention to give all such functions an _irq_handler postfix, but that would look strange and als be a bit a misleading name. I've opted for a WARN_ON(!in_irq()) instead. - The other two places left are called both from interrupt handlers and from our reset work, so need the full irqsave dance. Annotate them with a short comment. Reviewed-by: Jesse Barnes Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed