diff options
author | Kevin Kirspel <kevin-kirspel@idexx.com> | 2017-05-04 08:27:58 -0400 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-05-11 11:15:41 +0200 |
commit | 4a8f953f62f38be118a9aa3cdce87743ec898015 (patch) | |
tree | 94a04711f0ff484bdb8a9c7893408b7b17999ec8 /freebsd/sys/kern/subr_taskqueue.c | |
parent | Updating STTY command for use in RTEMS shell (diff) | |
download | rtems-libbsd-4a8f953f62f38be118a9aa3cdce87743ec898015.tar.bz2 |
Updating FREEBSD for tty support
Diffstat (limited to 'freebsd/sys/kern/subr_taskqueue.c')
-rw-r--r-- | freebsd/sys/kern/subr_taskqueue.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/freebsd/sys/kern/subr_taskqueue.c b/freebsd/sys/kern/subr_taskqueue.c index c739ccf3..c394869f 100644 --- a/freebsd/sys/kern/subr_taskqueue.c +++ b/freebsd/sys/kern/subr_taskqueue.c @@ -49,15 +49,11 @@ __FBSDID("$FreeBSD$"); #include <machine/stdarg.h> static MALLOC_DEFINE(M_TASKQUEUE, "taskqueue", "Task Queues"); -#ifndef __rtems__ static void *taskqueue_giant_ih; -#endif /* __rtems__ */ static void *taskqueue_ih; static void taskqueue_fast_enqueue(void *); static void taskqueue_swi_enqueue(void *); -#ifndef __rtems__ static void taskqueue_swi_giant_enqueue(void *); -#endif /* __rtems__ */ struct taskqueue_busy { struct task *tb_running; @@ -182,9 +178,7 @@ _taskqueue_create(const char *name, int mflags, queue->tq_flags |= TQ_FLAGS_ACTIVE; if (enqueue == taskqueue_fast_enqueue || enqueue == taskqueue_swi_enqueue || -#ifndef __rtems__ enqueue == taskqueue_swi_giant_enqueue || -#endif /* __rtems__ */ enqueue == taskqueue_thread_enqueue) queue->tq_flags |= TQ_FLAGS_UNLOCKED_ENQUEUE; mtx_init(&queue->tq_mutex, tq_name, NULL, mtxflags); @@ -652,7 +646,6 @@ taskqueue_swi_run(void *dummy) taskqueue_run(taskqueue_swi); } -#ifndef __rtems__ static void taskqueue_swi_giant_enqueue(void *context) { @@ -664,7 +657,6 @@ taskqueue_swi_giant_run(void *dummy) { taskqueue_run(taskqueue_swi_giant); } -#endif /* __rtems__ */ static int _taskqueue_start_threads(struct taskqueue **tqp, int count, int pri, @@ -829,11 +821,9 @@ TASKQUEUE_DEFINE(swi, taskqueue_swi_enqueue, NULL, swi_add(NULL, "task queue", taskqueue_swi_run, NULL, SWI_TQ, INTR_MPSAFE, &taskqueue_ih)); -#ifndef __rtems__ TASKQUEUE_DEFINE(swi_giant, taskqueue_swi_giant_enqueue, NULL, swi_add(NULL, "Giant taskq", taskqueue_swi_giant_run, NULL, SWI_TQ_GIANT, 0, &taskqueue_giant_ih)); -#endif /* __rtems__ */ TASKQUEUE_DEFINE_THREAD(thread); |