]>
Commit | Line | Data |
---|---|---|
1da177e4 | 1 | /** |
b5e89ed5 | 2 | * \file drm_irq.c |
1da177e4 LT |
3 | * IRQ support |
4 | * | |
5 | * \author Rickard E. (Rik) Faith <faith@valinux.com> | |
6 | * \author Gareth Hughes <gareth@valinux.com> | |
7 | */ | |
8 | ||
9 | /* | |
10 | * Created: Fri Mar 19 14:30:16 1999 by faith@valinux.com | |
11 | * | |
12 | * Copyright 1999, 2000 Precision Insight, Inc., Cedar Park, Texas. | |
13 | * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California. | |
14 | * All Rights Reserved. | |
15 | * | |
16 | * Permission is hereby granted, free of charge, to any person obtaining a | |
17 | * copy of this software and associated documentation files (the "Software"), | |
18 | * to deal in the Software without restriction, including without limitation | |
19 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
20 | * and/or sell copies of the Software, and to permit persons to whom the | |
21 | * Software is furnished to do so, subject to the following conditions: | |
22 | * | |
23 | * The above copyright notice and this permission notice (including the next | |
24 | * paragraph) shall be included in all copies or substantial portions of the | |
25 | * Software. | |
26 | * | |
27 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
28 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
29 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | |
30 | * VA LINUX SYSTEMS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR | |
31 | * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | |
32 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | |
33 | * OTHER DEALINGS IN THE SOFTWARE. | |
34 | */ | |
35 | ||
36 | #include "drmP.h" | |
37 | ||
38 | #include <linux/interrupt.h> /* For task queue support */ | |
39 | ||
40 | /** | |
41 | * Get interrupt from bus id. | |
b5e89ed5 | 42 | * |
1da177e4 LT |
43 | * \param inode device inode. |
44 | * \param filp file pointer. | |
45 | * \param cmd command. | |
46 | * \param arg user argument, pointing to a drm_irq_busid structure. | |
47 | * \return zero on success or a negative number on failure. | |
b5e89ed5 | 48 | * |
1da177e4 LT |
49 | * Finds the PCI device with the specified bus id and gets its IRQ number. |
50 | * This IOCTL is deprecated, and will now return EINVAL for any busid not equal | |
51 | * to that of the device that this DRM instance attached to. | |
52 | */ | |
53 | int drm_irq_by_busid(struct inode *inode, struct file *filp, | |
b5e89ed5 | 54 | unsigned int cmd, unsigned long arg) |
1da177e4 LT |
55 | { |
56 | drm_file_t *priv = filp->private_data; | |
57 | drm_device_t *dev = priv->head->dev; | |
58 | drm_irq_busid_t __user *argp = (void __user *)arg; | |
59 | drm_irq_busid_t p; | |
60 | ||
61 | if (!drm_core_check_feature(dev, DRIVER_HAVE_IRQ)) | |
62 | return -EINVAL; | |
63 | ||
64 | if (copy_from_user(&p, argp, sizeof(p))) | |
65 | return -EFAULT; | |
66 | ||
33229601 | 67 | if ((p.busnum >> 8) != drm_get_pci_domain(dev) || |
242ef0e1 D |
68 | (p.busnum & 0xff) != dev->pdev->bus->number || |
69 | p.devnum != PCI_SLOT(dev->pdev->devfn) || p.funcnum != PCI_FUNC(dev->pdev->devfn)) | |
1da177e4 LT |
70 | return -EINVAL; |
71 | ||
72 | p.irq = dev->irq; | |
73 | ||
b5e89ed5 | 74 | DRM_DEBUG("%d:%d:%d => IRQ %d\n", p.busnum, p.devnum, p.funcnum, p.irq); |
1da177e4 LT |
75 | if (copy_to_user(argp, &p, sizeof(p))) |
76 | return -EFAULT; | |
77 | return 0; | |
78 | } | |
79 | ||
80 | /** | |
81 | * Install IRQ handler. | |
82 | * | |
83 | * \param dev DRM device. | |
84 | * \param irq IRQ number. | |
85 | * | |
86 | * Initializes the IRQ related data, and setups drm_device::vbl_queue. Installs the handler, calling the driver | |
87 | * \c drm_driver_irq_preinstall() and \c drm_driver_irq_postinstall() functions | |
88 | * before and after the installation. | |
89 | */ | |
b5e89ed5 | 90 | static int drm_irq_install(drm_device_t * dev) |
1da177e4 LT |
91 | { |
92 | int ret; | |
b5e89ed5 | 93 | unsigned long sh_flags = 0; |
1da177e4 LT |
94 | |
95 | if (!drm_core_check_feature(dev, DRIVER_HAVE_IRQ)) | |
96 | return -EINVAL; | |
97 | ||
b5e89ed5 | 98 | if (dev->irq == 0) |
1da177e4 LT |
99 | return -EINVAL; |
100 | ||
30e2fb18 | 101 | mutex_lock(&dev->struct_mutex); |
1da177e4 LT |
102 | |
103 | /* Driver must have been initialized */ | |
b5e89ed5 | 104 | if (!dev->dev_private) { |
30e2fb18 | 105 | mutex_unlock(&dev->struct_mutex); |
1da177e4 LT |
106 | return -EINVAL; |
107 | } | |
108 | ||
b5e89ed5 | 109 | if (dev->irq_enabled) { |
30e2fb18 | 110 | mutex_unlock(&dev->struct_mutex); |
1da177e4 LT |
111 | return -EBUSY; |
112 | } | |
113 | dev->irq_enabled = 1; | |
30e2fb18 | 114 | mutex_unlock(&dev->struct_mutex); |
1da177e4 | 115 | |
b5e89ed5 | 116 | DRM_DEBUG("%s: irq=%d\n", __FUNCTION__, dev->irq); |
1da177e4 LT |
117 | |
118 | if (drm_core_check_feature(dev, DRIVER_IRQ_VBL)) { | |
119 | init_waitqueue_head(&dev->vbl_queue); | |
b5e89ed5 DA |
120 | |
121 | spin_lock_init(&dev->vbl_lock); | |
122 | ||
123 | INIT_LIST_HEAD(&dev->vbl_sigs.head); | |
776c9443 | 124 | INIT_LIST_HEAD(&dev->vbl_sigs2.head); |
b5e89ed5 | 125 | |
1da177e4 LT |
126 | dev->vbl_pending = 0; |
127 | } | |
128 | ||
b5e89ed5 | 129 | /* Before installing handler */ |
1da177e4 LT |
130 | dev->driver->irq_preinstall(dev); |
131 | ||
b5e89ed5 | 132 | /* Install handler */ |
1da177e4 | 133 | if (drm_core_check_feature(dev, DRIVER_IRQ_SHARED)) |
935f6e3a | 134 | sh_flags = IRQF_SHARED; |
b5e89ed5 DA |
135 | |
136 | ret = request_irq(dev->irq, dev->driver->irq_handler, | |
137 | sh_flags, dev->devname, dev); | |
138 | if (ret < 0) { | |
30e2fb18 | 139 | mutex_lock(&dev->struct_mutex); |
1da177e4 | 140 | dev->irq_enabled = 0; |
30e2fb18 | 141 | mutex_unlock(&dev->struct_mutex); |
1da177e4 LT |
142 | return ret; |
143 | } | |
144 | ||
b5e89ed5 | 145 | /* After installing handler */ |
1da177e4 LT |
146 | dev->driver->irq_postinstall(dev); |
147 | ||
148 | return 0; | |
149 | } | |
150 | ||
151 | /** | |
152 | * Uninstall the IRQ handler. | |
153 | * | |
154 | * \param dev DRM device. | |
155 | * | |
156 | * Calls the driver's \c drm_driver_irq_uninstall() function, and stops the irq. | |
157 | */ | |
b5e89ed5 | 158 | int drm_irq_uninstall(drm_device_t * dev) |
1da177e4 LT |
159 | { |
160 | int irq_enabled; | |
161 | ||
162 | if (!drm_core_check_feature(dev, DRIVER_HAVE_IRQ)) | |
163 | return -EINVAL; | |
164 | ||
30e2fb18 | 165 | mutex_lock(&dev->struct_mutex); |
1da177e4 LT |
166 | irq_enabled = dev->irq_enabled; |
167 | dev->irq_enabled = 0; | |
30e2fb18 | 168 | mutex_unlock(&dev->struct_mutex); |
1da177e4 | 169 | |
b5e89ed5 | 170 | if (!irq_enabled) |
1da177e4 LT |
171 | return -EINVAL; |
172 | ||
b5e89ed5 | 173 | DRM_DEBUG("%s: irq=%d\n", __FUNCTION__, dev->irq); |
1da177e4 LT |
174 | |
175 | dev->driver->irq_uninstall(dev); | |
176 | ||
b5e89ed5 | 177 | free_irq(dev->irq, dev); |
1da177e4 | 178 | |
2e54a007 MD |
179 | dev->locked_tasklet_func = NULL; |
180 | ||
1da177e4 LT |
181 | return 0; |
182 | } | |
b5e89ed5 | 183 | |
1da177e4 LT |
184 | EXPORT_SYMBOL(drm_irq_uninstall); |
185 | ||
186 | /** | |
187 | * IRQ control ioctl. | |
188 | * | |
189 | * \param inode device inode. | |
190 | * \param filp file pointer. | |
191 | * \param cmd command. | |
192 | * \param arg user argument, pointing to a drm_control structure. | |
193 | * \return zero on success or a negative number on failure. | |
194 | * | |
195 | * Calls irq_install() or irq_uninstall() according to \p arg. | |
196 | */ | |
b5e89ed5 DA |
197 | int drm_control(struct inode *inode, struct file *filp, |
198 | unsigned int cmd, unsigned long arg) | |
1da177e4 LT |
199 | { |
200 | drm_file_t *priv = filp->private_data; | |
201 | drm_device_t *dev = priv->head->dev; | |
202 | drm_control_t ctl; | |
b5e89ed5 | 203 | |
1da177e4 LT |
204 | /* if we haven't irq we fallback for compatibility reasons - this used to be a separate function in drm_dma.h */ |
205 | ||
b5e89ed5 | 206 | if (copy_from_user(&ctl, (drm_control_t __user *) arg, sizeof(ctl))) |
1da177e4 LT |
207 | return -EFAULT; |
208 | ||
b5e89ed5 | 209 | switch (ctl.func) { |
1da177e4 LT |
210 | case DRM_INST_HANDLER: |
211 | if (!drm_core_check_feature(dev, DRIVER_HAVE_IRQ)) | |
212 | return 0; | |
213 | if (dev->if_version < DRM_IF_VERSION(1, 2) && | |
214 | ctl.irq != dev->irq) | |
215 | return -EINVAL; | |
b5e89ed5 | 216 | return drm_irq_install(dev); |
1da177e4 LT |
217 | case DRM_UNINST_HANDLER: |
218 | if (!drm_core_check_feature(dev, DRIVER_HAVE_IRQ)) | |
219 | return 0; | |
b5e89ed5 | 220 | return drm_irq_uninstall(dev); |
1da177e4 LT |
221 | default: |
222 | return -EINVAL; | |
223 | } | |
224 | } | |
225 | ||
226 | /** | |
227 | * Wait for VBLANK. | |
228 | * | |
229 | * \param inode device inode. | |
230 | * \param filp file pointer. | |
231 | * \param cmd command. | |
232 | * \param data user argument, pointing to a drm_wait_vblank structure. | |
233 | * \return zero on success or a negative number on failure. | |
234 | * | |
b5e89ed5 | 235 | * Verifies the IRQ is installed. |
1da177e4 LT |
236 | * |
237 | * If a signal is requested checks if this task has already scheduled the same signal | |
238 | * for the same vblank sequence number - nothing to be done in | |
239 | * that case. If the number of tasks waiting for the interrupt exceeds 100 the | |
240 | * function fails. Otherwise adds a new entry to drm_device::vbl_sigs for this | |
241 | * task. | |
242 | * | |
243 | * If a signal is not requested, then calls vblank_wait(). | |
244 | */ | |
b5e89ed5 | 245 | int drm_wait_vblank(DRM_IOCTL_ARGS) |
1da177e4 LT |
246 | { |
247 | drm_file_t *priv = filp->private_data; | |
248 | drm_device_t *dev = priv->head->dev; | |
249 | drm_wait_vblank_t __user *argp = (void __user *)data; | |
250 | drm_wait_vblank_t vblwait; | |
251 | struct timeval now; | |
252 | int ret = 0; | |
ab285d74 | 253 | unsigned int flags, seq; |
1da177e4 LT |
254 | |
255 | if (!dev->irq) | |
256 | return -EINVAL; | |
257 | ||
3d77461e DA |
258 | if (copy_from_user(&vblwait, argp, sizeof(vblwait))) |
259 | return -EFAULT; | |
1da177e4 | 260 | |
776c9443 MD |
261 | if (vblwait.request.type & |
262 | ~(_DRM_VBLANK_TYPES_MASK | _DRM_VBLANK_FLAGS_MASK)) { | |
263 | DRM_ERROR("Unsupported type value 0x%x, supported mask 0x%x\n", | |
264 | vblwait.request.type, | |
265 | (_DRM_VBLANK_TYPES_MASK | _DRM_VBLANK_FLAGS_MASK)); | |
266 | return -EINVAL; | |
267 | } | |
268 | ||
269 | flags = vblwait.request.type & _DRM_VBLANK_FLAGS_MASK; | |
270 | ||
271 | if (!drm_core_check_feature(dev, (flags & _DRM_VBLANK_SECONDARY) ? | |
272 | DRIVER_IRQ_VBL2 : DRIVER_IRQ_VBL)) | |
273 | return -EINVAL; | |
274 | ||
ab285d74 MD |
275 | seq = atomic_read((flags & _DRM_VBLANK_SECONDARY) ? &dev->vbl_received2 |
276 | : &dev->vbl_received); | |
776c9443 MD |
277 | |
278 | switch (vblwait.request.type & _DRM_VBLANK_TYPES_MASK) { | |
1da177e4 | 279 | case _DRM_VBLANK_RELATIVE: |
ab285d74 | 280 | vblwait.request.sequence += seq; |
1da177e4 LT |
281 | vblwait.request.type &= ~_DRM_VBLANK_RELATIVE; |
282 | case _DRM_VBLANK_ABSOLUTE: | |
283 | break; | |
284 | default: | |
285 | return -EINVAL; | |
286 | } | |
287 | ||
ab285d74 MD |
288 | if ((flags & _DRM_VBLANK_NEXTONMISS) && |
289 | (seq - vblwait.request.sequence) <= (1<<23)) { | |
290 | vblwait.request.sequence = seq + 1; | |
291 | } | |
292 | ||
b5e89ed5 | 293 | if (flags & _DRM_VBLANK_SIGNAL) { |
1da177e4 | 294 | unsigned long irqflags; |
776c9443 MD |
295 | drm_vbl_sig_t *vbl_sigs = (flags & _DRM_VBLANK_SECONDARY) |
296 | ? &dev->vbl_sigs2 : &dev->vbl_sigs; | |
1da177e4 | 297 | drm_vbl_sig_t *vbl_sig; |
1da177e4 | 298 | |
b5e89ed5 | 299 | spin_lock_irqsave(&dev->vbl_lock, irqflags); |
1da177e4 LT |
300 | |
301 | /* Check if this task has already scheduled the same signal | |
302 | * for the same vblank sequence number; nothing to be done in | |
303 | * that case | |
304 | */ | |
776c9443 | 305 | list_for_each_entry(vbl_sig, &vbl_sigs->head, head) { |
1da177e4 LT |
306 | if (vbl_sig->sequence == vblwait.request.sequence |
307 | && vbl_sig->info.si_signo == vblwait.request.signal | |
b5e89ed5 DA |
308 | && vbl_sig->task == current) { |
309 | spin_unlock_irqrestore(&dev->vbl_lock, | |
310 | irqflags); | |
049b3233 | 311 | vblwait.reply.sequence = seq; |
1da177e4 LT |
312 | goto done; |
313 | } | |
314 | } | |
315 | ||
b5e89ed5 DA |
316 | if (dev->vbl_pending >= 100) { |
317 | spin_unlock_irqrestore(&dev->vbl_lock, irqflags); | |
1da177e4 LT |
318 | return -EBUSY; |
319 | } | |
320 | ||
321 | dev->vbl_pending++; | |
322 | ||
b5e89ed5 | 323 | spin_unlock_irqrestore(&dev->vbl_lock, irqflags); |
1da177e4 | 324 | |
b5e89ed5 DA |
325 | if (! |
326 | (vbl_sig = | |
327 | drm_alloc(sizeof(drm_vbl_sig_t), DRM_MEM_DRIVER))) { | |
1da177e4 LT |
328 | return -ENOMEM; |
329 | } | |
330 | ||
b5e89ed5 | 331 | memset((void *)vbl_sig, 0, sizeof(*vbl_sig)); |
1da177e4 LT |
332 | |
333 | vbl_sig->sequence = vblwait.request.sequence; | |
334 | vbl_sig->info.si_signo = vblwait.request.signal; | |
335 | vbl_sig->task = current; | |
336 | ||
b5e89ed5 | 337 | spin_lock_irqsave(&dev->vbl_lock, irqflags); |
1da177e4 | 338 | |
776c9443 | 339 | list_add_tail((struct list_head *)vbl_sig, &vbl_sigs->head); |
1da177e4 | 340 | |
b5e89ed5 | 341 | spin_unlock_irqrestore(&dev->vbl_lock, irqflags); |
049b3233 MD |
342 | |
343 | vblwait.reply.sequence = seq; | |
1da177e4 | 344 | } else { |
776c9443 MD |
345 | if (flags & _DRM_VBLANK_SECONDARY) { |
346 | if (dev->driver->vblank_wait2) | |
347 | ret = dev->driver->vblank_wait2(dev, &vblwait.request.sequence); | |
348 | } else if (dev->driver->vblank_wait) | |
b5e89ed5 DA |
349 | ret = |
350 | dev->driver->vblank_wait(dev, | |
351 | &vblwait.request.sequence); | |
1da177e4 | 352 | |
b5e89ed5 | 353 | do_gettimeofday(&now); |
1da177e4 LT |
354 | vblwait.reply.tval_sec = now.tv_sec; |
355 | vblwait.reply.tval_usec = now.tv_usec; | |
356 | } | |
357 | ||
b5e89ed5 | 358 | done: |
3d77461e DA |
359 | if (copy_to_user(argp, &vblwait, sizeof(vblwait))) |
360 | return -EFAULT; | |
1da177e4 LT |
361 | |
362 | return ret; | |
363 | } | |
364 | ||
365 | /** | |
366 | * Send the VBLANK signals. | |
367 | * | |
368 | * \param dev DRM device. | |
369 | * | |
370 | * Sends a signal for each task in drm_device::vbl_sigs and empties the list. | |
371 | * | |
372 | * If a signal is not requested, then calls vblank_wait(). | |
373 | */ | |
b5e89ed5 | 374 | void drm_vbl_send_signals(drm_device_t * dev) |
1da177e4 | 375 | { |
1da177e4 | 376 | unsigned long flags; |
776c9443 | 377 | int i; |
1da177e4 | 378 | |
b5e89ed5 | 379 | spin_lock_irqsave(&dev->vbl_lock, flags); |
1da177e4 | 380 | |
776c9443 MD |
381 | for (i = 0; i < 2; i++) { |
382 | struct list_head *list, *tmp; | |
383 | drm_vbl_sig_t *vbl_sig; | |
384 | drm_vbl_sig_t *vbl_sigs = i ? &dev->vbl_sigs2 : &dev->vbl_sigs; | |
385 | unsigned int vbl_seq = atomic_read(i ? &dev->vbl_received2 : | |
386 | &dev->vbl_received); | |
387 | ||
388 | list_for_each_safe(list, tmp, &vbl_sigs->head) { | |
389 | vbl_sig = list_entry(list, drm_vbl_sig_t, head); | |
390 | if ((vbl_seq - vbl_sig->sequence) <= (1 << 23)) { | |
391 | vbl_sig->info.si_code = vbl_seq; | |
392 | send_sig_info(vbl_sig->info.si_signo, | |
393 | &vbl_sig->info, vbl_sig->task); | |
1da177e4 | 394 | |
776c9443 | 395 | list_del(list); |
1da177e4 | 396 | |
776c9443 MD |
397 | drm_free(vbl_sig, sizeof(*vbl_sig), |
398 | DRM_MEM_DRIVER); | |
1da177e4 | 399 | |
776c9443 MD |
400 | dev->vbl_pending--; |
401 | } | |
1da177e4 LT |
402 | } |
403 | } | |
404 | ||
b5e89ed5 | 405 | spin_unlock_irqrestore(&dev->vbl_lock, flags); |
1da177e4 | 406 | } |
1da177e4 | 407 | |
b5e89ed5 | 408 | EXPORT_SYMBOL(drm_vbl_send_signals); |
2e54a007 MD |
409 | |
410 | /** | |
411 | * Tasklet wrapper function. | |
412 | * | |
413 | * \param data DRM device in disguise. | |
414 | * | |
415 | * Attempts to grab the HW lock and calls the driver callback on success. On | |
416 | * failure, leave the lock marked as contended so the callback can be called | |
417 | * from drm_unlock(). | |
418 | */ | |
419 | static void drm_locked_tasklet_func(unsigned long data) | |
420 | { | |
421 | drm_device_t *dev = (drm_device_t*)data; | |
422 | unsigned long irqflags; | |
423 | ||
424 | spin_lock_irqsave(&dev->tasklet_lock, irqflags); | |
425 | ||
426 | if (!dev->locked_tasklet_func || | |
427 | !drm_lock_take(&dev->lock.hw_lock->lock, | |
428 | DRM_KERNEL_CONTEXT)) { | |
429 | spin_unlock_irqrestore(&dev->tasklet_lock, irqflags); | |
430 | return; | |
431 | } | |
432 | ||
433 | dev->lock.lock_time = jiffies; | |
434 | atomic_inc(&dev->counts[_DRM_STAT_LOCKS]); | |
435 | ||
436 | dev->locked_tasklet_func(dev); | |
437 | ||
438 | drm_lock_free(dev, &dev->lock.hw_lock->lock, | |
439 | DRM_KERNEL_CONTEXT); | |
440 | ||
441 | dev->locked_tasklet_func = NULL; | |
442 | ||
443 | spin_unlock_irqrestore(&dev->tasklet_lock, irqflags); | |
444 | } | |
445 | ||
446 | /** | |
447 | * Schedule a tasklet to call back a driver hook with the HW lock held. | |
448 | * | |
449 | * \param dev DRM device. | |
450 | * \param func Driver callback. | |
451 | * | |
452 | * This is intended for triggering actions that require the HW lock from an | |
453 | * interrupt handler. The lock will be grabbed ASAP after the interrupt handler | |
454 | * completes. Note that the callback may be called from interrupt or process | |
455 | * context, it must not make any assumptions about this. Also, the HW lock will | |
456 | * be held with the kernel context or any client context. | |
457 | */ | |
458 | void drm_locked_tasklet(drm_device_t *dev, void (*func)(drm_device_t*)) | |
459 | { | |
460 | unsigned long irqflags; | |
461 | static DECLARE_TASKLET(drm_tasklet, drm_locked_tasklet_func, 0); | |
462 | ||
8163e418 MD |
463 | if (!drm_core_check_feature(dev, DRIVER_HAVE_IRQ) || |
464 | test_bit(TASKLET_STATE_SCHED, &drm_tasklet.state)) | |
2e54a007 MD |
465 | return; |
466 | ||
467 | spin_lock_irqsave(&dev->tasklet_lock, irqflags); | |
468 | ||
469 | if (dev->locked_tasklet_func) { | |
470 | spin_unlock_irqrestore(&dev->tasklet_lock, irqflags); | |
471 | return; | |
472 | } | |
473 | ||
474 | dev->locked_tasklet_func = func; | |
475 | ||
476 | spin_unlock_irqrestore(&dev->tasklet_lock, irqflags); | |
477 | ||
478 | drm_tasklet.data = (unsigned long)dev; | |
479 | ||
480 | tasklet_hi_schedule(&drm_tasklet); | |
481 | } | |
482 | EXPORT_SYMBOL(drm_locked_tasklet); |