From 19daf93f3fda4c04278a2852bff0be917dffd4ae Mon Sep 17 00:00:00 2001 From: Georgii Staroselskii Date: Fri, 15 Sep 2017 21:51:22 +0300 Subject: [PATCH] interrupts-9.md: fix a typo in workqueues' info s/function that queue/function that queues --- interrupts/interrupts-9.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interrupts/interrupts-9.md b/interrupts/interrupts-9.md index 13098c0..1f28c36 100644 --- a/interrupts/interrupts-9.md +++ b/interrupts/interrupts-9.md @@ -460,7 +460,7 @@ static inline bool queue_work(struct workqueue_struct *wq, } ``` -The `queue_work` function just calls the `queue_work_on` function that queue work on specific processor. Note that in our case we pass the `WORK_CPU_UNBOUND` to the `queue_work_on` function. It is a part of the `enum` that is defined in the [include/linux/workqueue.h](https://github.com/torvalds/linux/blob/16f73eb02d7e1765ccab3d2018e0bd98eb93d973/include/linux/workqueue.h) and represents workqueue which are not bound to any specific processor. The `queue_work_on` function tests and set the `WORK_STRUCT_PENDING_BIT` bit of the given `work` and executes the `__queue_work` function with the `workqueue` for the given processor and given `work`: +The `queue_work` function just calls the `queue_work_on` function that queues work on specific processor. Note that in our case we pass the `WORK_CPU_UNBOUND` to the `queue_work_on` function. It is a part of the `enum` that is defined in the [include/linux/workqueue.h](https://github.com/torvalds/linux/blob/16f73eb02d7e1765ccab3d2018e0bd98eb93d973/include/linux/workqueue.h) and represents workqueue which are not bound to any specific processor. The `queue_work_on` function tests and set the `WORK_STRUCT_PENDING_BIT` bit of the given `work` and executes the `__queue_work` function with the `workqueue` for the given processor and given `work`: ```C bool queue_work_on(int cpu, struct workqueue_struct *wq,