Rev 5078 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5078 | Rev 5271 | ||
---|---|---|---|
Line 204... | Line 204... | ||
204 | spin_unlock_irqrestore(&rdev->irq.lock, irqflags); |
204 | spin_unlock_irqrestore(&rdev->irq.lock, irqflags); |
205 | } |
205 | } |
206 | } |
206 | } |
Line 207... | Line 207... | ||
207 | 207 | ||
- | 208 | /** |
|
- | 209 | * radeon_irq_kms_sw_irq_get_delayed - enable software interrupt |
|
- | 210 | * |
|
- | 211 | * @rdev: radeon device pointer |
|
- | 212 | * @ring: ring whose interrupt you want to enable |
|
- | 213 | * |
|
- | 214 | * Enables the software interrupt for a specific ring (all asics). |
|
- | 215 | * The software interrupt is generally used to signal a fence on |
|
- | 216 | * a particular ring. |
|
- | 217 | */ |
|
- | 218 | bool radeon_irq_kms_sw_irq_get_delayed(struct radeon_device *rdev, int ring) |
|
- | 219 | { |
|
- | 220 | return atomic_inc_return(&rdev->irq.ring_int[ring]) == 1; |
|
- | 221 | } |
|
- | 222 | ||
208 | /** |
223 | /** |
209 | * radeon_irq_kms_sw_irq_put - disable software interrupt |
224 | * radeon_irq_kms_sw_irq_put - disable software interrupt |
210 | * |
225 | * |
211 | * @rdev: radeon device pointer |
226 | * @rdev: radeon device pointer |
212 | * @ring: ring whose interrupt you want to disable |
227 | * @ring: ring whose interrupt you want to disable |