Lines Matching defs:cpu
47 extern int cpu_intrq_setup(struct cpu *);
48 extern void cpu_intrq_cleanup(struct cpu *);
49 extern void cpu_intrq_register(struct cpu *);
51 struct cpu *cpus; /* pointer to other cpus; dynamically allocate */
52 struct cpu *cpu[NCPU]; /* pointers to all CPUs */
83 * other than boot cpu.
94 * common slave cpu initialization code
154 * parametric flag setting functions. these routines set the cpu
155 * state just prior to releasing the slave cpu.
164 cp = cpu[cpuid];
185 cp = cpu[cpuid];
192 * Internal cpu startup sequencer
199 * start the slave cpu
200 * wait for the slave cpu to set the proxy
225 /* start the slave cpu */
227 if (prom_test("SUNW,start-cpu-by-cpuid") == 0) {
238 /* wait for the slave cpu to check in. */
245 panic("cpu%d failed to start (2)", cpuid);
254 /* run the master side of stick synchronization for the slave cpu */
258 * deal with the cpu flags in a phase-specific manner
269 int trap_tr0_inuse = 1; /* it is always used on the boot cpu */
281 struct cpu *cp = NULL;
293 ASSERT(cpu[cpuid] == NULL);
326 * Obtain pointer to the appropriate cpu structure.
332 * When dynamically allocating cpu structs,
334 * cpu structs.
337 /* grab the first cpu struct on the free list */
409 * Allocate and init cpu module private data structures,
439 struct cpu *cp;
447 ASSERT(cpu[cpuid] != NULL);
449 cp = cpu[cpuid];
451 /* Free cpu module private data structures, including scrubber. */
454 /* Free cpu ID string and brand string. */
474 * special per-cpu threads: it's idle thread, it's pause thread,
507 cmn_err(CE_WARN, "failed to free trap trace buffer from cpu%d",
515 * caches a cpu pointer. The race is detected by checking cpu_next.
524 * Place the freed cpu structure on the list of freed cpus.
545 struct cpu *cp;
551 ASSERT(cpuid < NCPU && cpu[cpuid] != NULL);
554 * Obtain pointer to the appropriate cpu structure.
556 cp = cpu[cpuid];
576 * restart the cpu now
583 cmn_err(CE_CONT, "!cpu%d initialization complete - restarted\n",
589 * C function after cpu_start sets up the cpu registers.
594 struct cpu *cp = CPU;
661 extern struct cpu *cpu[NCPU]; /* pointers to all CPUs */
710 * Initialize CPU 0 cpu module private data area, including scrubber.
729 * should we be initializing this cpu?
744 cmn_err(CE_WARN, "boot cpu not a member "
753 ASSERT(cpu[cpuid] == NULL);
756 cmn_err(CE_PANIC, "cpu%d: setup failed", cpuid);
759 common_startup_init(cpu[cpuid], cpuid);
765 * printing - so we always direct the 'cpu .. online'
768 cmn_err(CE_CONT, "!cpu%d initialization complete - online\n",
786 * cpu_init_private for every cpu (including CPU 0).