summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorJerry Jelinek <jerry.jelinek@joyent.com>2020-04-20 13:33:29 +0000
committerJerry Jelinek <jerry.jelinek@joyent.com>2020-04-20 13:33:29 +0000
commit57c0e380ed72a56089c9606e37cabd0c30ba2006 (patch)
tree51078c1935e091a7e6eda7ae8df34e25bff58a08 /usr/src
parent0aa1be3052902c4b4d76eaf6eb2a5c4b38dc09ef (diff)
downloadillumos-joyent-57c0e380ed72a56089c9606e37cabd0c30ba2006.tar.gz
12475 want cyclic_move_here() [fix mismerge]
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/uts/common/os/cyclic.c55
1 files changed, 0 insertions, 55 deletions
diff --git a/usr/src/uts/common/os/cyclic.c b/usr/src/uts/common/os/cyclic.c
index a35dbd8e3b..58db0d5edf 100644
--- a/usr/src/uts/common/os/cyclic.c
+++ b/usr/src/uts/common/os/cyclic.c
@@ -3203,61 +3203,6 @@ cyclic_move_here(cyclic_id_t id)
cyclic_juggle_one_to(idp, dest->cpu_cyclic);
}
-/*
- * void cyclic_move_here(cyclic_id_t)
- *
- * Overview
- *
- * cyclic_move_here() attempts to shuffle a cyclic onto the current CPU.
- *
- * Arguments and notes
- *
- * The first argument is a cyclic_id returned from cyclic_add().
- * cyclic_move_here() may _not_ be called on a cyclic_id returned from
- * cyclic_add_omni() or one bound to a CPU or partition via cyclic_bind().
- *
- * This cyclic shuffling is performed on a best-effort basis. If for some
- * reason the current CPU is unsuitable or the thread migrates between CPUs
- * during the call, the function may return with the cyclic residing on some
- * other CPU.
- *
- * Return value
- *
- * None; cyclic_move_here() always reports success.
- *
- * Caller's context
- *
- * cpu_lock must be held by the caller, and the caller must not be in
- * interrupt context. The caller may not hold any locks which are also
- * grabbed by any cyclic handler.
- */
-void
-cyclic_move_here(cyclic_id_t id)
-{
- cyc_id_t *idp = (cyc_id_t *)id;
- cyc_cpu_t *cc = idp->cyi_cpu;
- cpu_t *dest = CPU;
-
- ASSERT(MUTEX_HELD(&cpu_lock));
- CYC_PTRACE("move_here", idp, dest);
- VERIFY3P(cc, !=, NULL);
- VERIFY3U(cc->cyp_cyclics[idp->cyi_ndx].cy_flags &
- (CYF_CPU_BOUND|CYF_PART_BOUND), ==, 0);
-
- if (cc->cyp_cpu == dest) {
- return;
- }
-
- /* Is the destination CPU suitable for a migration target? */
- if (dest->cpu_cyclic == NULL ||
- dest->cpu_cyclic->cyp_state == CYS_OFFLINE ||
- (dest->cpu_flags & CPU_ENABLE) == 0) {
- return;
- }
-
- cyclic_juggle_one_to(idp, dest->cpu_cyclic);
-}
-
hrtime_t
cyclic_getres()
{