From 6de4254323a78599ca181d69d868a3d80a82792d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fran=C3=A7ois=20Tigeot?= Date: Tue, 14 Mar 2017 09:18:21 +0100 Subject: [PATCH] drm/linux: Improve linux/workqueue.h --- sys/dev/drm/include/linux/workqueue.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/sys/dev/drm/include/linux/workqueue.h b/sys/dev/drm/include/linux/workqueue.h index 834c94a1c3..228b4bb486 100644 --- a/sys/dev/drm/include/linux/workqueue.h +++ b/sys/dev/drm/include/linux/workqueue.h @@ -3,7 +3,7 @@ * Copyright (c) 2010 iX Systems, Inc. * Copyright (c) 2010 Panasas, Inc. * Copyright (c) 2013, 2014 Mellanox Technologies, Ltd. - * Copyright (c) 2014-2016 François Tigeot + * Copyright (c) 2014-2017 François Tigeot * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -80,7 +80,9 @@ do { \ TASK_INIT(&(work)->work_task, 0, _work_fn, (work)); \ } while (0) -#define INIT_DELAYED_WORK(_work, func) \ +#define INIT_WORK_ONSTACK(work, func) INIT_WORK(work, func) + +#define INIT_DELAYED_WORK(_work, func) \ do { \ INIT_WORK(&(_work)->work, func); \ lwkt_token_init(&(_work)->token, "workqueue token"); \ @@ -247,6 +249,11 @@ flush_work(struct work_struct *work) return true; } +static inline void +destroy_work_on_stack(struct work_struct *work) +{ +} + /* System-wide workqueues */ extern struct workqueue_struct *system_wq; extern struct workqueue_struct *system_long_wq; -- 2.41.0