mach_mp_startup.c revision 2f0fcb93196badcdd803715656c809058d9f3114
1N/A * The contents of this file are subject to the terms of the 1N/A * Common Development and Distribution License (the "License"). 1N/A * You may not use this file except in compliance with the License. 1N/A * See the License for the specific language governing permissions 1N/A * and limitations under the License. 1N/A * When distributing Covered Code, include this CDDL HEADER in each 1N/A * If applicable, add the following below this CDDL HEADER, with the 1N/A * fields enclosed by brackets "[]" replaced with your own identifying 1N/A * information: Portions Copyright [yyyy] [name of copyright owner] 1N/A * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 1N/A * Use is subject to license terms. 1N/A * Useful for disabling MP bring-up for an MP capable kernel 1N/A * (a kernel that was built with MP defined) 1N/A * Init CPU info - get CPU type info for processor_info system call. 1N/A * Get clock-frequency property from cpunodes[] for the CPU. 1N/A * Current frequency in Hz. 1N/A * Supported frequencies. 1N/A * StarFire requires the signature block stuff setup here 1N/A * cpu0 starts out running. Other cpus are 1N/A * still in OBP land and we will leave them 1N/A * On first cpu setup, tell hv we are booting 1N/A * Routine used to cleanup a CPU that has been powered off. This will 1N/A * destroy all per-cpu information related to this cpu. 1N/A int cpuid;
/* set by mp_cpu_configure() */ 1N/A * Routine used to setup a newly inserted CPU in preparation for starting 1N/A * Note: uses cpu_lock to protect cpunodes 1N/A * which will be modified inside of fill_cpu and 1N/A * setup_exec_unit_mappings. 1N/A * Adding a CPU may cause the execution unit sharing 1N/A * relationships to change. Update the mappings in 1N/A * the cpunode structures. 1N/A /* propagate the updated mappings to the CPU structures */ 1N/A * Platform-specific actions to be taken when all cpus are running 1N/A /* N.B. This must happen after xc_init() has run. */ 1N/A "%s (cpuid %d, clock %d MHz)",
1N/A "%s (chipid %d, clock %d MHz)",