diff options
| author | H. Peter Anvin <hpa@zytor.com> | 2010-02-22 19:20:34 -0500 |
|---|---|---|
| committer | H. Peter Anvin <hpa@zytor.com> | 2010-02-22 19:20:34 -0500 |
| commit | d02e30c31c57683a66ed68a1bcff900ca78f6d56 (patch) | |
| tree | c3ce99a00061bcc1199b50fa838147d876c56717 /drivers/gpu/drm/drm_irq.c | |
| parent | 0fdc7a8022c3eaff6b5ee27ffb9e913e5e58d8e9 (diff) | |
| parent | aef55d4922e62a0d887e60d87319f3718aec6ced (diff) | |
Merge branch 'x86/irq' into x86/apic
Merge reason:
Conflicts in arch/x86/kernel/apic/io_apic.c
Resolved Conflicts:
arch/x86/kernel/apic/io_apic.c
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'drivers/gpu/drm/drm_irq.c')
| -rw-r--r-- | drivers/gpu/drm/drm_irq.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_irq.c b/drivers/gpu/drm/drm_irq.c index 7998ee66b317..b98384dbd9a7 100644 --- a/drivers/gpu/drm/drm_irq.c +++ b/drivers/gpu/drm/drm_irq.c | |||
| @@ -115,6 +115,7 @@ void drm_vblank_cleanup(struct drm_device *dev) | |||
| 115 | 115 | ||
| 116 | dev->num_crtcs = 0; | 116 | dev->num_crtcs = 0; |
| 117 | } | 117 | } |
| 118 | EXPORT_SYMBOL(drm_vblank_cleanup); | ||
| 118 | 119 | ||
| 119 | int drm_vblank_init(struct drm_device *dev, int num_crtcs) | 120 | int drm_vblank_init(struct drm_device *dev, int num_crtcs) |
| 120 | { | 121 | { |
| @@ -163,7 +164,6 @@ int drm_vblank_init(struct drm_device *dev, int num_crtcs) | |||
| 163 | } | 164 | } |
| 164 | 165 | ||
| 165 | dev->vblank_disable_allowed = 0; | 166 | dev->vblank_disable_allowed = 0; |
| 166 | |||
| 167 | return 0; | 167 | return 0; |
| 168 | 168 | ||
| 169 | err: | 169 | err: |
| @@ -493,6 +493,9 @@ EXPORT_SYMBOL(drm_vblank_off); | |||
| 493 | */ | 493 | */ |
| 494 | void drm_vblank_pre_modeset(struct drm_device *dev, int crtc) | 494 | void drm_vblank_pre_modeset(struct drm_device *dev, int crtc) |
| 495 | { | 495 | { |
| 496 | /* vblank is not initialized (IRQ not installed ?) */ | ||
| 497 | if (!dev->num_crtcs) | ||
| 498 | return; | ||
| 496 | /* | 499 | /* |
| 497 | * To avoid all the problems that might happen if interrupts | 500 | * To avoid all the problems that might happen if interrupts |
| 498 | * were enabled/disabled around or between these calls, we just | 501 | * were enabled/disabled around or between these calls, we just |
