diff options
author | Richard Braun <rbraun@sceen.net> | 2013-06-04 20:43:53 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2013-06-04 20:47:32 +0200 |
commit | 485e24a7afeebb7f0ce933fd3be8c61472902c34 (patch) | |
tree | c58d4f33c7db25026ada5e3d8a54bfbaeaa1e5e2 /kern | |
parent | 7c038b801b9007d2ae27420995b7f4fcfb8e70a1 (diff) |
x86/{cpu,tcb}: move scheduling interrupts handling
Move scheduling interrupt functions from the tcb module to the cpu module.
In addition, rename the related trap and functions to avoid mentioning
"rescheduling", as it just makes descriptions more confusing. Instead,
include the name of the module that makes use of this interrupt.
Diffstat (limited to 'kern')
-rw-r--r-- | kern/thread.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/kern/thread.c b/kern/thread.c index a54f078e..f19ec853 100644 --- a/kern/thread.c +++ b/kern/thread.c @@ -429,13 +429,12 @@ thread_runq_wakeup(struct thread_runq *runq, struct thread *thread) if ((runq != thread_runq_local()) && thread_test_flag(runq->current, THREAD_YIELD)) { /* - * Make the new flags globally visible before sending the - * rescheduling request. This barrier pairs with the one implied - * by the rescheduling IPI. + * Make the new flags globally visible before sending the scheduling + * request. This barrier pairs with the one implied by the received IPI. */ mb_store(); - tcb_send_reschedule(thread_runq_id(runq)); + cpu_send_thread_schedule(thread_runq_id(runq)); } } |