processor.h (7c478bd9) | processor.h (5cff7825) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the |
5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. | 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. |
8 * 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or http://www.opensolaris.org/os/licensing. 11 * See the License for the specific language governing permissions 12 * and limitations under the License. 13 * 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. --- 5 unchanged lines hidden (view full) --- 21 */ 22/* 23 * Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T 24 * All Rights Reserved 25 * 26 */ 27 28/* | 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 * or http://www.opensolaris.org/os/licensing. 10 * See the License for the specific language governing permissions 11 * and limitations under the License. 12 * 13 * When distributing Covered Code, include this CDDL HEADER in each 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. --- 5 unchanged lines hidden (view full) --- 20 */ 21/* 22 * Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T 23 * All Rights Reserved 24 * 25 */ 26 27/* |
29 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. | 28 * Copyright 2007 Sun Microsystems, Inc. All rights reserved. |
30 * Use is subject to license terms. 31 */ 32 33#ifndef _SYS_PROCESSOR_H 34#define _SYS_PROCESSOR_H 35 36#pragma ident "%Z%%M% %I% %E% SMI" 37 --- 55 unchanged lines hidden (view full) --- 93#define PI_TYPELEN 16 /* max size of CPU type string */ 94#define PI_FPUTYPE 32 /* max size of FPU types string */ 95 96typedef struct { 97 int pi_state; /* processor state, see above */ 98 char pi_processor_type[PI_TYPELEN]; /* ASCII CPU type */ 99 char pi_fputypes[PI_FPUTYPE]; /* ASCII FPU types */ 100 int pi_clock; /* CPU clock freq in MHz */ | 29 * Use is subject to license terms. 30 */ 31 32#ifndef _SYS_PROCESSOR_H 33#define _SYS_PROCESSOR_H 34 35#pragma ident "%Z%%M% %I% %E% SMI" 36 --- 55 unchanged lines hidden (view full) --- 92#define PI_TYPELEN 16 /* max size of CPU type string */ 93#define PI_FPUTYPE 32 /* max size of FPU types string */ 94 95typedef struct { 96 int pi_state; /* processor state, see above */ 97 char pi_processor_type[PI_TYPELEN]; /* ASCII CPU type */ 98 char pi_fputypes[PI_FPUTYPE]; /* ASCII FPU types */ 99 int pi_clock; /* CPU clock freq in MHz */ |
100 uint64_t pi_curr_clock; /* current clock freq in Hz */ 101 char *pi_supp_freqs; /* supported freqs in Hz */ |
|
101} processor_info_t; 102 103/* 104 * Binding values for processor_bind(2) 105 */ 106#define PBIND_NONE -1 /* LWP/thread is not bound */ 107#define PBIND_QUERY -2 /* don't set, just return the binding */ 108 --- 38 unchanged lines hidden --- | 102} processor_info_t; 103 104/* 105 * Binding values for processor_bind(2) 106 */ 107#define PBIND_NONE -1 /* LWP/thread is not bound */ 108#define PBIND_QUERY -2 /* don't set, just return the binding */ 109 --- 38 unchanged lines hidden --- |