mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
fbcon: unconditionally initialize cursor blink interval
A sun7i-a20-olinuxino-micro fails to boot when kernel parameter vt.global_cursor_default=0. The value is copied to vc->vc_deccm causing the initialization of ops->cur_blink_jiffies to be skipped. Unconditionally initialize it. Reported-and-tested-by: Jonathan Liu <[email protected]> Signed-off-by: Scot Doyle <[email protected]> Acked-by: Pavel Machek <[email protected]> Signed-off-by: Tomi Valkeinen <[email protected]>
This commit is contained in:
parent
37b617f9be
commit
2a17d7e80f
1 changed files with 2 additions and 1 deletions
|
|
@ -1306,10 +1306,11 @@ static void fbcon_cursor(struct vc_data *vc, int mode)
|
|||
int y;
|
||||
int c = scr_readw((u16 *) vc->vc_pos);
|
||||
|
||||
ops->cur_blink_jiffies = msecs_to_jiffies(vc->vc_cur_blink_ms);
|
||||
|
||||
if (fbcon_is_inactive(vc, info) || vc->vc_deccm != 1)
|
||||
return;
|
||||
|
||||
ops->cur_blink_jiffies = msecs_to_jiffies(vc->vc_cur_blink_ms);
|
||||
if (vc->vc_cursor_type & 0x10)
|
||||
fbcon_del_cursor_timer(info);
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue