Rename to preempted_context_switch (GNU/Linux).
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
@@ -54,7 +54,7 @@ chx_dmb (void)
|
||||
}
|
||||
|
||||
|
||||
static void chx_preempt_into (struct chx_thread *tp_next);
|
||||
static void preempted_context_switch (struct chx_thread *tp_next);
|
||||
|
||||
static sigset_t ss_cur;
|
||||
|
||||
@@ -163,7 +163,7 @@ chx_handle_intr (uint32_t irq_num)
|
||||
return;
|
||||
|
||||
tp_next = chx_running_preempted (tp_next);
|
||||
chx_preempt_into (tp_next);
|
||||
preempted_context_switch (tp_next);
|
||||
}
|
||||
|
||||
|
||||
@@ -196,7 +196,7 @@ sigalrm_handler (int sig, siginfo_t *siginfo, void *arg)
|
||||
if (tp_next)
|
||||
{
|
||||
tp_next = chx_running_preempted (tp_next);
|
||||
chx_preempt_into (tp_next);
|
||||
preempted_context_switch (tp_next);
|
||||
}
|
||||
chx_sigmask (uc);
|
||||
}
|
||||
@@ -224,7 +224,7 @@ chx_init_arch (struct chx_thread *tp)
|
||||
}
|
||||
|
||||
static void
|
||||
chx_preempt_into (struct chx_thread *tp_next)
|
||||
preempted_context_switch (struct chx_thread *tp_next)
|
||||
{
|
||||
struct chx_thread *tp_prev = chx_running ();
|
||||
chx_set_running (tp_next);
|
||||
|
||||
Reference in New Issue
Block a user