2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-25 05:34:00 +08:00
linux-next/drivers/auxdisplay
Sebastian Andrzej Siewior 701454bce9 auxdisplay: Remove in_interrupt() usage.
charlcd_write() is invoked as a VFS->write() callback and as such it is
always invoked from preemptible context and may sleep.

charlcd_puts() is invoked from register/unregister callback which is
preemptible. The reboot notifier callback is also invoked from
preemptible context.

Therefore there is no need to use in_interrupt() to figure out if it
is safe to sleep because it always is. in_interrupt() and related
context checks are being removed from non-core code.
Using schedule() to schedule (and be friendly to others) is
discouraged and cond_resched() should be used instead.

Remove in_interrupt() and use cond_resched() to schedule every 32
iterations if needed.

Link: https://lkml.kernel.org/r/20200914204209.256266093@linutronix.de
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
[mo: fixed a couple typos in comment and commit message]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2021-03-16 16:32:40 +01:00
..
arm-charlcd.c auxdisplay: Replace HTTP links with HTTPS ones 2020-08-08 16:10:03 +02:00
cfag12864b.c treewide: Miguel has moved 2021-02-26 09:41:03 -08:00
cfag12864bfb.c treewide: Miguel has moved 2021-02-26 09:41:03 -08:00
charlcd.c auxdisplay: Remove in_interrupt() usage. 2021-03-16 16:32:40 +01:00
charlcd.h auxdisplay: Change gotoxy calling interface 2020-11-04 11:04:04 +01:00
hd44780_common.c auxdisplay: Change gotoxy calling interface 2020-11-04 11:04:04 +01:00
hd44780_common.h auxdisplay: Change gotoxy calling interface 2020-11-04 11:04:04 +01:00
hd44780.c auxdisplay: Move char redefine code to hd44780_common 2020-11-04 11:04:04 +01:00
ht16k33.c auxdisplay: ht16k33: Fix refresh rate handling 2021-01-25 22:14:19 +01:00
img-ascii-lcd.c auxdisplay: img-ascii-lcd: convert to devm_platform_ioremap_resource 2020-03-06 22:07:10 +01:00
Kconfig auxdisplay: Fix duplicate CHARLCD config symbol 2021-01-25 22:14:19 +01:00
ks0108.c treewide: Miguel has moved 2021-02-26 09:41:03 -08:00
lcd2s.c auxdisplay: fix platform_no_drv_owner.cocci warnings 2020-11-14 09:52:35 +01:00
Makefile auxdisplay: add a driver for lcd2s character display 2020-11-04 11:04:05 +01:00
panel.c auxdisplay: panel: Remove redundant charlcd_ops structures 2020-11-16 17:13:37 +01:00