drm/i915: use in_interrupt() not in_irq() to check context
authorDave Gordon <david.s.gordon@intel.com>
Fri, 6 Mar 2015 15:34:26 +0000 (15:34 +0000)
committerJani Nikula <jani.nikula@intel.com>
Tue, 10 Mar 2015 09:16:54 +0000 (11:16 +0200)
commit6c51d46f135b00c00373fcd029786ccef2b02b5b
tree4e3c57368977b77c58a15790d85dd99eeb7c4904
parent9eccca0843205f87c00404b663188b88eb248051
drm/i915: use in_interrupt() not in_irq() to check context

The kernel in_irq() function tests for hard-IRQ context only, so if a
system is run with the kernel 'threadirqs' option selected, the test in
intel_check_page_flip() generates lots of warnings, because then it gets
called in soft-IRQ context.

We can instead use in_interrupt() which allows for either type of
interrupt, while still detecting and complaining about misuse of the
page flip code if it is ever called from non-interrupt context.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89321
Signed-off-by: Dave Gordon <david.s.gordon@intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: stable@vger.kernel.org
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_display.c