diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-06-26 18:53:22 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-06-26 18:53:22 -0400 |
commit | 8c7febe83915332276cab49e89f6580bb963fb9a (patch) | |
tree | c6ffa5fbdef402f8c6e2d75b19dcce813fd21ded /drivers/video/console | |
parent | 23908db413eccd77084b09c9b0a4451dfb0524c0 (diff) | |
parent | 71206b9f8120eb513c621d4f31906577bb658df3 (diff) |
Merge tag 'tty-4.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty
Pull tty/serial driver updates from Greg KH:
"Here's the tty and serial driver patches for 4.2-rc1.
A number of individual driver updates, some code cleanups, and other
minor things, full details in the shortlog.
All have been in linux-next for a while with no reported issues"
* tag 'tty-4.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty: (152 commits)
Doc: serial-rs485.txt: update RS485 driver interface
Doc: tty.txt: remove mention of the BKL
MAINTAINERS: tty: add serial docs directory
serial: sprd: check for NULL after calling devm_clk_get
serial: 8250_pci: Correct uartclk for xr17v35x expansion chips
serial: 8250_pci: Add support for 12 port Exar boards
serial: 8250_uniphier: add bindings document for UniPhier UART
serial: core: cleanup in uart_get_baud_rate()
serial: stm32-usart: Add STM32 USART Driver
tty/serial: kill off set_irq_flags usage
tty: move linux/gsmmux.h to uapi
doc: dt: add documentation for nxp,lpc1850-uart
serial: 8250: add LPC18xx/43xx UART driver
serial: 8250_uniphier: add UniPhier serial driver
serial: 8250_dw: support ACPI platforms with integrated DMA engine
serial: of_serial: check the return value of clk_prepare_enable()
serial: of_serial: use devm_clk_get() instead of clk_get()
serial: earlycon: Add support for big-endian MMIO accesses
serial: sirf: use hrtimer for data rx
serial: sirf: correct the fifo empty_bit
...
Diffstat (limited to 'drivers/video/console')
-rw-r--r-- | drivers/video/console/fbcon.c | 5 | ||||
-rw-r--r-- | drivers/video/console/fbcon.h | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c index b97210671a81..658c34bb9076 100644 --- a/drivers/video/console/fbcon.c +++ b/drivers/video/console/fbcon.c | |||
@@ -402,7 +402,7 @@ static void cursor_timer_handler(unsigned long dev_addr) | |||
402 | struct fbcon_ops *ops = info->fbcon_par; | 402 | struct fbcon_ops *ops = info->fbcon_par; |
403 | 403 | ||
404 | queue_work(system_power_efficient_wq, &info->queue); | 404 | queue_work(system_power_efficient_wq, &info->queue); |
405 | mod_timer(&ops->cursor_timer, jiffies + HZ/5); | 405 | mod_timer(&ops->cursor_timer, jiffies + ops->cur_blink_jiffies); |
406 | } | 406 | } |
407 | 407 | ||
408 | static void fbcon_add_cursor_timer(struct fb_info *info) | 408 | static void fbcon_add_cursor_timer(struct fb_info *info) |
@@ -417,7 +417,7 @@ static void fbcon_add_cursor_timer(struct fb_info *info) | |||
417 | 417 | ||
418 | init_timer(&ops->cursor_timer); | 418 | init_timer(&ops->cursor_timer); |
419 | ops->cursor_timer.function = cursor_timer_handler; | 419 | ops->cursor_timer.function = cursor_timer_handler; |
420 | ops->cursor_timer.expires = jiffies + HZ / 5; | 420 | ops->cursor_timer.expires = jiffies + ops->cur_blink_jiffies; |
421 | ops->cursor_timer.data = (unsigned long ) info; | 421 | ops->cursor_timer.data = (unsigned long ) info; |
422 | add_timer(&ops->cursor_timer); | 422 | add_timer(&ops->cursor_timer); |
423 | ops->flags |= FBCON_FLAGS_CURSOR_TIMER; | 423 | ops->flags |= FBCON_FLAGS_CURSOR_TIMER; |
@@ -1309,6 +1309,7 @@ static void fbcon_cursor(struct vc_data *vc, int mode) | |||
1309 | if (fbcon_is_inactive(vc, info) || vc->vc_deccm != 1) | 1309 | if (fbcon_is_inactive(vc, info) || vc->vc_deccm != 1) |
1310 | return; | 1310 | return; |
1311 | 1311 | ||
1312 | ops->cur_blink_jiffies = msecs_to_jiffies(vc->vc_cur_blink_ms); | ||
1312 | if (vc->vc_cursor_type & 0x10) | 1313 | if (vc->vc_cursor_type & 0x10) |
1313 | fbcon_del_cursor_timer(info); | 1314 | fbcon_del_cursor_timer(info); |
1314 | else | 1315 | else |
diff --git a/drivers/video/console/fbcon.h b/drivers/video/console/fbcon.h index 6bd2e0c7f209..7aaa4eabbba0 100644 --- a/drivers/video/console/fbcon.h +++ b/drivers/video/console/fbcon.h | |||
@@ -70,6 +70,7 @@ struct fbcon_ops { | |||
70 | struct fb_cursor cursor_state; | 70 | struct fb_cursor cursor_state; |
71 | struct display *p; | 71 | struct display *p; |
72 | int currcon; /* Current VC. */ | 72 | int currcon; /* Current VC. */ |
73 | int cur_blink_jiffies; | ||
73 | int cursor_flash; | 74 | int cursor_flash; |
74 | int cursor_reset; | 75 | int cursor_reset; |
75 | int blank_state; | 76 | int blank_state; |