OSDN Git Service
(root)
/
android-x86
/
external-libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ee0c09
)
fixup i915 workqueue handling when modeset=1
author
Hong Liu
<hong.liu@intel.com>
Fri, 9 May 2008 02:08:36 +0000
(10:08 +0800)
committer
Jesse Barnes
<jbarnes@virtuousgeek.org>
Fri, 9 May 2008 21:29:10 +0000
(14:29 -0700)
Fixup workqueue creation error handling and make sure we destroy the queue on
unload.
shared-core/i915_init.c
patch
|
blob
|
history
diff --git
a/shared-core/i915_init.c
b/shared-core/i915_init.c
index
8824b95
..
b9e7e17
100644
(file)
--- a/
shared-core/i915_init.c
+++ b/
shared-core/i915_init.c
@@
-256,7
+256,7
@@
int i915_driver_load(struct drm_device *dev, unsigned long flags)
DRM_DEBUG("Enabled hardware status page\n");
dev_priv->wq = create_singlethread_workqueue("i915");
- if (dev_priv == 0) {
+ if (dev_priv
->wq
== 0) {
DRM_DEBUG("Error\n");
}
@@
-291,6
+291,7
@@
int i915_driver_unload(struct drm_device *dev)
if (drm_core_check_feature(dev, DRIVER_MODESET)) {
drm_irq_uninstall(dev);
intel_modeset_cleanup(dev);
+ destroy_workqueue(dev_priv->wq);
}
#if 0