path: root/common/Makefile
diff options
authorAhmad Fatoum <>2021-06-22 10:26:12 +0200
committerSascha Hauer <>2021-06-25 09:30:33 +0200
commit6ed59a76a0d1250059b8cdd61e0c3cf0f25b5a69 (patch)
tree248965d7519753bb0e23105a277166416e569398 /common/Makefile
parentf866f471337e3249e0946764f09841baf73d6c9d (diff)
common: move workqueue handling from poller_call() to sched()
Workqueues are run out of poller_call, not because of a dependency, but because when they were added, poller_call was directly called from is_timeout. With the addition of bthreads, there is now a general resched() function that runs pollers and switches between bthreads. It makes sense to move workqueue handling there as well to keep scheduling matter contained in a single function. Do so. Signed-off-by: Ahmad Fatoum <> Link: Signed-off-by: Sascha Hauer <>
Diffstat (limited to 'common/Makefile')
1 files changed, 1 insertions, 0 deletions
diff --git a/common/Makefile b/common/Makefile
index 382a4f661..16582534e 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -50,6 +50,7 @@ extra-$(CONFIG_MODULES) +=
obj-$(CONFIG_OFTREE) += oftree.o
obj-$(CONFIG_PARTITION_DISK) += partitions.o partitions/
obj-$(CONFIG_PASSWORD) += password.o
+obj-$(CONFIG_HAS_SCHED) += sched.o
obj-$(CONFIG_POLLER) += poller.o
obj-$(CONFIG_BTHREAD) += bthread.o
obj-$(CONFIG_RESET_SOURCE) += reset_source.o