cmp.c revision 0e7515250c8395f368aa45fb9acae7c4f8f8b786
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq * CDDL HEADER START
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq * The contents of this file are subject to the terms of the
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq * Common Development and Distribution License (the "License").
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq * You may not use this file except in compliance with the License.
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq * See the License for the specific language governing permissions
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq * and limitations under the License.
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq * When distributing Covered Code, include this CDDL HEADER in each
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq * If applicable, add the following below this CDDL HEADER, with the
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq * fields enclosed by brackets "[]" replaced with your own identifying
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq * information: Portions Copyright [yyyy] [name of copyright owner]
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq * CDDL HEADER END
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
55f5292c612446ce6f93ddd248c0019b5974618bFrank Van Der Linden * Use is subject to license terms.
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq * Note: For now assume the chip ID as 0 for all the cpus until additional
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq * information is available via machine description table
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq * Returns 1 if cpuid is CMP-capable, 0 otherwise.
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq/*ARGSUSED*/
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq return (0);
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq * Indicate that this core (cpuid) resides on the chip indicated by chipid.
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq * Called during boot and DR add.
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq/*ARGSUSED*/
121d13daefbeb0546d0d9c6ef16c753aa6890290Frank Van Der Linden * Indicate that this core (cpuid) is being DR removed.
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq/*ARGSUSED*/
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq * Called when cpuid is being onlined or offlined. If the offlined
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq * processor is CMP-capable then current target of the CMP Error Steering
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq * Register is set to either the lowest numbered on-line sibling core, if
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq * one exists, or else to this core.
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq/*ARGSUSED*/
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq * Return 0, shortterm workaround until MD table is updated
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq * to provide cpu-chip mapping
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq/*ARGSUSED*/
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq/*ARGSUSED*/
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq switch (hw) {
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq return (1);
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq return (1);
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq return (1);
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq return (0);
c7158ae983f5a04c4a998f468ecefba6d23ba721tariqpg_plat_cpus_share(cpu_t *cpu_a, cpu_t *cpu_b, pghw_type_t hw)
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq return (0);
c7158ae983f5a04c4a998f468ecefba6d23ba721tariq switch (hw) {
case PGHW_MPIPE:
case PGHW_FPU:
int rank1 = 0;
int rank2 = 0;
rank1 = i;
rank2 = i;
return (hw1);
return (hw2);
return (CMT_NO_POLICY);
cmp_set_nosteal_interval(void)
nosteal_nsec = 0;