Rev 3263 | Rev 3480 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3263 | Rev 3298 | ||
---|---|---|---|
Line 1552... | Line 1552... | ||
1552 | int i915_driver_open(struct drm_device *dev, struct drm_file *file) |
1552 | int i915_driver_open(struct drm_device *dev, struct drm_file *file) |
1553 | { |
1553 | { |
1554 | struct drm_i915_file_private *file_priv; |
1554 | struct drm_i915_file_private *file_priv; |
Line 1555... | Line 1555... | ||
1555 | 1555 | ||
1556 | DRM_DEBUG_DRIVER("\n"); |
- | |
1557 | ENTER(); |
- | |
1558 | 1556 | DRM_DEBUG_DRIVER("\n"); |
|
1559 | file_priv = kmalloc(sizeof(*file_priv), GFP_KERNEL); |
1557 | file_priv = kmalloc(sizeof(*file_priv), GFP_KERNEL); |
1560 | if (!file_priv) |
1558 | if (!file_priv) |
Line 1561... | Line 1559... | ||
1561 | return -ENOMEM; |
1559 | return -ENOMEM; |
Line 1565... | Line 1563... | ||
1565 | spin_lock_init(&file_priv->mm.lock); |
1563 | spin_lock_init(&file_priv->mm.lock); |
1566 | INIT_LIST_HEAD(&file_priv->mm.request_list); |
1564 | INIT_LIST_HEAD(&file_priv->mm.request_list); |
Line 1567... | Line 1565... | ||
1567 | 1565 | ||
Line 1568... | Line -... | ||
1568 | idr_init(&file_priv->context_idr); |
- | |
1569 | 1566 | idr_init(&file_priv->context_idr); |
|
1570 | LEAVE(); |
1567 | |
Line 1571... | Line 1568... | ||
1571 | return 0; |
1568 | return 0; |
1572 | } |
1569 | } |