diff options
Diffstat (limited to 'drivers/video/intelfb/intelfbdrv.c')
-rw-r--r-- | drivers/video/intelfb/intelfbdrv.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/video/intelfb/intelfbdrv.c b/drivers/video/intelfb/intelfbdrv.c index 068c56d4e652..08f8241bb92a 100644 --- a/drivers/video/intelfb/intelfbdrv.c +++ b/drivers/video/intelfb/intelfbdrv.c | |||
@@ -1473,6 +1473,19 @@ static int | |||
1473 | intelfb_ioctl(struct fb_info *info, unsigned int cmd, unsigned long arg) | 1473 | intelfb_ioctl(struct fb_info *info, unsigned int cmd, unsigned long arg) |
1474 | { | 1474 | { |
1475 | int retval = 0; | 1475 | int retval = 0; |
1476 | struct intelfb_info *dinfo = GET_DINFO(info); | ||
1477 | u32 pipe = 0; | ||
1478 | |||
1479 | switch (cmd) { | ||
1480 | case FBIO_WAITFORVSYNC: | ||
1481 | if (get_user(pipe, (__u32 __user *)arg)) | ||
1482 | return -EFAULT; | ||
1483 | |||
1484 | retval = intelfbhw_wait_for_vsync(dinfo, pipe); | ||
1485 | break; | ||
1486 | default: | ||
1487 | break; | ||
1488 | } | ||
1476 | 1489 | ||
1477 | return retval; | 1490 | return retval; |
1478 | } | 1491 | } |