drm/i915: avoid non-atomic sysrq execution
authorJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 15 May 2009 21:11:48 +0000 (14:11 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 5 Jun 2009 14:22:33 +0000 (14:22 +0000)
commitb66d18ddb16603d1e1ec39cb2ff3abf3fd212180
tree4328633189eae071e2e2a43a4406ecff477c3a90
parent42c2798b35b95c471877133e19ccc3cab00e9b65
drm/i915: avoid non-atomic sysrq execution

The sysrq functions are executed in hardirq context, so we shouldn't be
calling sleeping functions from them, like mutex_locks or memory
allocations.

Fix up the i915 sysrq handler to avoid this.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/intel_fb.c