Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 289196
b: refs/heads/master
c: 5609f7f
h: refs/heads/master
v: v3
  • Loading branch information
Rob Clark authored and Greg Kroah-Hartman committed Mar 7, 2012
1 parent 821e19f commit bf5bbbf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a890e6623ae024d28f855d672e72649fa2cb511e
refs/heads/master: 5609f7fe306508d77e0dcf1de2c9a957b6af1e06
8 changes: 8 additions & 0 deletions trunk/drivers/staging/omapdrm/omap_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,9 @@ static int dev_load(struct drm_device *dev, unsigned long flags)

dev->dev_private = priv;

priv->wq = alloc_workqueue("omapdrm",
WQ_UNBOUND | WQ_NON_REENTRANT, 1);

omap_gem_init(dev);

ret = omap_modeset_init(dev);
Expand Down Expand Up @@ -598,6 +601,8 @@ static int dev_load(struct drm_device *dev, unsigned long flags)

static int dev_unload(struct drm_device *dev)
{
struct omap_drm_private *priv = dev->dev_private;

DBG("unload: dev=%p", dev);

drm_vblank_cleanup(dev);
Expand All @@ -607,6 +612,9 @@ static int dev_unload(struct drm_device *dev)
omap_modeset_free(dev);
omap_gem_deinit(dev);

flush_workqueue(priv->wq);
destroy_workqueue(priv->wq);

kfree(dev->dev_private);
dev->dev_private = NULL;

Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/staging/omapdrm/omap_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ struct omap_drm_private {

struct drm_fb_helper *fbdev;

struct workqueue_struct *wq;

bool has_dmm;
};

Expand Down

0 comments on commit bf5bbbf

Please sign in to comment.