mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
fbdev: remove FBINFO_MISC_USEREVENT around fb_blank
With the recursion broken in the previous patch we can drop the FBINFO_MISC_USEREVENT flag around calls to fb_blank - recursion prevention was it's only job. Signed-off-by: Daniel Vetter <[email protected]> Reviewed-by: Sam Ravnborg <[email protected]> Reviewed-by: Maarten Lankhorst <[email protected]> Cc: Daniel Vetter <[email protected]> Cc: Bartlomiej Zolnierkiewicz <[email protected]> Cc: Hans de Goede <[email protected]> Cc: Yisheng Xie <[email protected]> Cc: "Michał Mirosław" <[email protected]> Cc: Peter Rosin <[email protected]> Cc: Mikulas Patocka <[email protected]> Cc: Rob Clark <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
This commit is contained in:
parent
de29ae5c09
commit
3667617347
3 changed files with 2 additions and 8 deletions
|
|
@ -2386,9 +2386,8 @@ static int fbcon_blank(struct vc_data *vc, int blank, int mode_switch)
|
|||
fbcon_cursor(vc, blank ? CM_ERASE : CM_DRAW);
|
||||
ops->cursor_flash = (!blank);
|
||||
|
||||
if (!(info->flags & FBINFO_MISC_USEREVENT))
|
||||
if (fb_blank(info, blank))
|
||||
fbcon_generic_blank(vc, info, blank);
|
||||
if (fb_blank(info, blank))
|
||||
fbcon_generic_blank(vc, info, blank);
|
||||
}
|
||||
|
||||
if (!blank)
|
||||
|
|
|
|||
|
|
@ -1194,10 +1194,7 @@ static long do_fb_ioctl(struct fb_info *info, unsigned int cmd,
|
|||
case FBIOBLANK:
|
||||
console_lock();
|
||||
lock_fb_info(info);
|
||||
info->flags |= FBINFO_MISC_USEREVENT;
|
||||
ret = fb_blank(info, arg);
|
||||
info->flags &= ~FBINFO_MISC_USEREVENT;
|
||||
|
||||
/* might again call into fb_blank */
|
||||
fbcon_fb_blanked(info, arg);
|
||||
unlock_fb_info(info);
|
||||
|
|
|
|||
|
|
@ -306,9 +306,7 @@ static ssize_t store_blank(struct device *device,
|
|||
|
||||
arg = simple_strtoul(buf, &last, 0);
|
||||
console_lock();
|
||||
fb_info->flags |= FBINFO_MISC_USEREVENT;
|
||||
err = fb_blank(fb_info, arg);
|
||||
fb_info->flags &= ~FBINFO_MISC_USEREVENT;
|
||||
/* might again call into fb_blank */
|
||||
fbcon_fb_blanked(fb_info, arg);
|
||||
console_unlock();
|
||||
|
|
|
|||
Loading…
Reference in a new issue