mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-15 23:14:31 +08:00
6e4863dbb5
alloc_req() uses in_interrupt() to detect if it is safe to use down(). The usage of in_interrupt() in drivers is phased out and Linus clearly requested that code which changes behaviour depending on context should either be separated or the context be conveyed in an argument passed by the caller, which usually knows the context. The semaphore is used as a counting semaphore, initialized with the number of slots in the request pool minus IRQ_REQ_POOL_SIZE - which are reserved for the in_interrupt() user to ensure that a request is always available. The preemptible user will block on the semphore waiting for a request to become available in case there are no requests available. Replace in_interrupt() with a `can_sleep' argument to indicate if it is safe to block on the sempahore. Cc: linux-omap@vger.kernel.org Signed-off-by: Ahmed S. Darwish <a.darwish@linutronix.de> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20210208223810.388502-2-bigeasy@linutronix.de |
||
---|---|---|
.. | ||
hwa742.c | ||
Kconfig | ||
lcd_ams_delta.c | ||
lcd_h3.c | ||
lcd_htcherald.c | ||
lcd_inn1510.c | ||
lcd_inn1610.c | ||
lcd_mipid.c | ||
lcd_osk.c | ||
lcd_palmte.c | ||
lcd_palmtt.c | ||
lcd_palmz71.c | ||
lcdc.c | ||
lcdc.h | ||
Makefile | ||
omapfb_main.c | ||
omapfb.h | ||
sossi.c |