Lines Matching refs:CPU

43  * with a tick to account for their use of CPU time.
93 * Array of online CPU pointers.
96 * Per-CPU, cache-aligned data structures to facilitate multi-threading.
108 * CPU online/offline.
111 * CPU id of the clock() CPU. Used to detect when the clock CPU
115 * CPU set of all online processors that can be X-called.
119 * for the task CPU time resource limit. We lower the number of calls
252 * the CPU set size for multi-threading, then use the default value.
314 if (CPU == cp) {
317 * CPU. Use the pinned thread (if any) on this CPU
343 * Make sure the thread is still on the CPU.
346 ((cp != CPU) || (t != cp->cpu_thread->t_intr))) {
348 * We could not locate the thread. Skip this CPU. Race
402 * lwp down on a CPU it can migrate and show up
432 if (clock_cpu_id != CPU->cpu_id)
433 clock_cpu_id = CPU->cpu_id;
438 * CPU for the sake of fairness.
472 * We want to handle the clock CPU here. If we
473 * scheduled the accounting for the clock CPU to another
479 clock_tick_process(CPU, LBOLT_NO_ACCOUNT, clock_tick_pending);
491 * Pick the next online CPU in list for scheduling tick
493 * So, CPU online/offline cannot muck with this while
494 * we are picking our CPU to X-call.
496 if (cp == CPU)
501 * CPU for the sake of fairness.
514 * Move the CPU pointer around every second. This is so
538 * Handle the thread on current CPU first. This is to prevent a
541 * CPU.
543 clock_tick_process(CPU, mylbolt, pending);
551 if ((cp == NULL) || (cp == CPU) || (cp->cpu_id == clock_cpu_id))
558 if ((cp == NULL) || (cp == CPU) || (cp->cpu_id == clock_cpu_id))
574 * process anything on an offlined CPU. If we got blocked
578 if (!CLOCK_TICK_XCALL_SAFE(CPU))
581 ctp = clock_tick_cpu[CPU->cpu_id];
587 * If a CPU is busy at LOCK_LEVEL, then an invocation
625 * This function performs some computations at CPU offline/online