git: a2b1b471e8f7 - stable/13 - linuxkpi: Change irq_work_queue to return a bool
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 27 Apr 2022 15:16:23 UTC
The branch stable/13 has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=a2b1b471e8f7eed64521898b4cbddf6ba851a206 commit a2b1b471e8f7eed64521898b4cbddf6ba851a206 Author: Emmanuel Vadot <manu@FreeBSD.org> AuthorDate: 2022-03-28 13:27:27 +0000 Commit: Emmanuel Vadot <manu@FreeBSD.org> CommitDate: 2022-04-27 16:38:06 +0000 linuxkpi: Change irq_work_queue to return a bool This was changed in Linux v5.10 MFC after: 1 week Sponsored by: Beckhoff Automation GmbH & Co .KG (cherry picked from commit 2192bc32554ab94900d644e2af197c700c81692d) --- sys/compat/linuxkpi/common/include/linux/irq_work.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/compat/linuxkpi/common/include/linux/irq_work.h b/sys/compat/linuxkpi/common/include/linux/irq_work.h index 98f0b20d8405..7e5a8feb69e4 100644 --- a/sys/compat/linuxkpi/common/include/linux/irq_work.h +++ b/sys/compat/linuxkpi/common/include/linux/irq_work.h @@ -60,10 +60,13 @@ init_irq_work(struct irq_work *irqw, irq_work_func_t func) irqw->func = func; } -static inline void +static inline bool irq_work_queue(struct irq_work *irqw) { - taskqueue_enqueue(linux_irq_work_tq, &irqw->irq_task); + if(taskqueue_enqueue(linux_irq_work_tq, &irqw->irq_task) == 0) + return (true); + + return (false); } static inline void