/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */
/* Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T */
/* All Rights Reserved */
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/priocntl.h>
#include <sys/tspriocntl.h>
/*
* The purpose of this file is to allow a user to make their own
* ts_dptbl. The contents of this file should be included in the
* ts_dptbl(4) man page with proper instructions for making
* It is recommended that the system calls be used to change the time
* quantums instead of re-building the module.
* There are also other tunable time sharing parameters in here also
* that used to be in param.c
*/
extern int ts_dispatch_extended;
&mod_miscops, "Time sharing dispatch table"
};
};
int
_init()
{
return (mod_install(&modlinkage));
}
int
{
}
/*
* array of global priorities used by ts procs sleeping or
* running in kernel mode after sleep
*/
};
/* glbpri qntm tqexp slprt mxwt lwt */
};
/*
* config_ts_dptbl_server[] is an alternate dispatch table that may
* deliver better performance on large server configurations.
* This table must be the same size as the default table, config_ts_dptbl.
*/
/* glbpri qntm tqexp slprt mxwt lwt */
};
/*
* Return the address of config_ts_dptbl
*/
{
/*
* If ts_dispatch_extended is -1, set it to 0x0
* to choose the default TS table.
*/
if (ts_dispatch_extended == -1)
ts_dispatch_extended = 0;
/*
* If ts_dispatch_extended is non-zero, use the
* "large server style" TS dispatch table.
*/
if (ts_dispatch_extended)
return (config_ts_dptbl_server);
else
return (config_ts_dptbl);
}
/*
* Return the address of config_ts_kmdpris
*/
pri_t *
{
return (config_ts_kmdpris);
}
/*
* Return the address of ts_maxumdpri
*/
{
/*
* The config_ts_dptbl_server table must be the same size as
* the config_ts_dptbl table.
*/
/*LINTED*/
return (config_ts_maxumdpri);
}