From: Willy Tarreau Date: Mon, 30 Apr 2007 11:15:14 +0000 (+0200) Subject: [MINOR] uninline task_wakeup X-Git-Tag: v1.3.10~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e33aecefa6f1c11a510b74db909acc962eca08de;p=thirdparty%2Fhaproxy.git [MINOR] uninline task_wakeup task_wakup has become bigger since we used the trees. Let's not inline it anymore. --- diff --git a/include/proto/task.h b/include/proto/task.h index 424a46c6d0..2c724ad61f 100644 --- a/include/proto/task.h +++ b/include/proto/task.h @@ -38,7 +38,9 @@ extern void *run_queue; void *tree_delete(void *node); /* puts the task in run queue , and returns */ -static inline struct task *task_wakeup(struct task *t) +#define task_wakeup _task_wakeup +struct task *_task_wakeup(struct task *t); +static inline struct task *__task_wakeup(struct task *t) { if (t->state == TASK_RUNNING) return t; diff --git a/src/task.c b/src/task.c index 2fd6efa2a9..d236d9fdc7 100644 --- a/src/task.c +++ b/src/task.c @@ -43,6 +43,10 @@ void *tree_delete(void *node) { return __tree_delete(node); } +struct task *_task_wakeup(struct task *t) +{ + return __task_wakeup(t); +} /* * task_queue() *