xref: /illumos-gate/usr/src/uts/common/disp/ts_dptbl.c (revision bbf21555)
17c478bd9Sstevel@tonic-gate /*
27c478bd9Sstevel@tonic-gate  * CDDL HEADER START
37c478bd9Sstevel@tonic-gate  *
47c478bd9Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
57c478bd9Sstevel@tonic-gate  * Common Development and Distribution License, Version 1.0 only
67c478bd9Sstevel@tonic-gate  * (the "License").  You may not use this file except in compliance
77c478bd9Sstevel@tonic-gate  * with the License.
87c478bd9Sstevel@tonic-gate  *
97c478bd9Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
107c478bd9Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
117c478bd9Sstevel@tonic-gate  * See the License for the specific language governing permissions
127c478bd9Sstevel@tonic-gate  * and limitations under the License.
137c478bd9Sstevel@tonic-gate  *
147c478bd9Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
157c478bd9Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
167c478bd9Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
177c478bd9Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
187c478bd9Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
197c478bd9Sstevel@tonic-gate  *
207c478bd9Sstevel@tonic-gate  * CDDL HEADER END
217c478bd9Sstevel@tonic-gate  */
227c478bd9Sstevel@tonic-gate /*
237c478bd9Sstevel@tonic-gate  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
247c478bd9Sstevel@tonic-gate  * Use is subject to license terms.
257c478bd9Sstevel@tonic-gate  */
267c478bd9Sstevel@tonic-gate 
277c478bd9Sstevel@tonic-gate /*	Copyright (c) 1990, 1991 UNIX System Laboratories, Inc.	*/
287c478bd9Sstevel@tonic-gate /*	Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T	*/
297c478bd9Sstevel@tonic-gate /*	  All Rights Reserved  	*/
307c478bd9Sstevel@tonic-gate 
317c478bd9Sstevel@tonic-gate #include <sys/proc.h>
327c478bd9Sstevel@tonic-gate #include <sys/priocntl.h>
337c478bd9Sstevel@tonic-gate #include <sys/class.h>
347c478bd9Sstevel@tonic-gate #include <sys/disp.h>
357c478bd9Sstevel@tonic-gate #include <sys/ts.h>
367c478bd9Sstevel@tonic-gate #include <sys/tspriocntl.h>
377c478bd9Sstevel@tonic-gate #include <sys/modctl.h>
387c478bd9Sstevel@tonic-gate 
397c478bd9Sstevel@tonic-gate /*
407c478bd9Sstevel@tonic-gate  * The purpose of this file is to allow a user to make their own
417c478bd9Sstevel@tonic-gate  * ts_dptbl. The contents of this file should be included in the
42*bbf21555SRichard Lowe  * ts_dptbl(5) man page with proper instructions for making
437c478bd9Sstevel@tonic-gate  * and replacing the TS_DPTBL.kmod in modules/sched. This was the
447c478bd9Sstevel@tonic-gate  * only way to provide functionality equivalent to the mkboot/cunix
457c478bd9Sstevel@tonic-gate  * method in SVr4 without having the utilities mkboot/cunix in
467c478bd9Sstevel@tonic-gate  * SunOS/Svr4.
477c478bd9Sstevel@tonic-gate  * It is recommended that the system calls be used to change the time
487c478bd9Sstevel@tonic-gate  * quantums instead of re-building the module.
497c478bd9Sstevel@tonic-gate  * There are also other tunable time sharing parameters in here also
507c478bd9Sstevel@tonic-gate  * that used to be in param.c
517c478bd9Sstevel@tonic-gate  */
527c478bd9Sstevel@tonic-gate 
537c478bd9Sstevel@tonic-gate extern int ts_dispatch_extended;
547c478bd9Sstevel@tonic-gate 
557c478bd9Sstevel@tonic-gate static struct modlmisc modlmisc = {
567c478bd9Sstevel@tonic-gate 	&mod_miscops, "Time sharing dispatch table"
577c478bd9Sstevel@tonic-gate };
587c478bd9Sstevel@tonic-gate 
597c478bd9Sstevel@tonic-gate static struct modlinkage modlinkage = {
607c478bd9Sstevel@tonic-gate 	MODREV_1, &modlmisc, 0
617c478bd9Sstevel@tonic-gate };
627c478bd9Sstevel@tonic-gate 
637c478bd9Sstevel@tonic-gate int
_init()647c478bd9Sstevel@tonic-gate _init()
657c478bd9Sstevel@tonic-gate {
667c478bd9Sstevel@tonic-gate 	return (mod_install(&modlinkage));
677c478bd9Sstevel@tonic-gate }
687c478bd9Sstevel@tonic-gate 
697c478bd9Sstevel@tonic-gate int
_info(struct modinfo * modinfop)707c478bd9Sstevel@tonic-gate _info(struct modinfo *modinfop)
717c478bd9Sstevel@tonic-gate {
727c478bd9Sstevel@tonic-gate 	return (mod_info(&modlinkage, modinfop));
737c478bd9Sstevel@tonic-gate }
747c478bd9Sstevel@tonic-gate 
757c478bd9Sstevel@tonic-gate #define	TSGPUP0	0	/* Global priority for TS user priority 0 */
767c478bd9Sstevel@tonic-gate #define	TSGPKP0	60	/* Global priority for TS kernel priority 0 */
777c478bd9Sstevel@tonic-gate 
787c478bd9Sstevel@tonic-gate /*
797c478bd9Sstevel@tonic-gate  * array of global priorities used by ts procs sleeping or
807c478bd9Sstevel@tonic-gate  * running in kernel mode after sleep
817c478bd9Sstevel@tonic-gate  */
827c478bd9Sstevel@tonic-gate 
837c478bd9Sstevel@tonic-gate pri_t config_ts_kmdpris[] = {
847c478bd9Sstevel@tonic-gate 	TSGPKP0,    TSGPKP0+1,  TSGPKP0+2,  TSGPKP0+3,
857c478bd9Sstevel@tonic-gate 	TSGPKP0+4,  TSGPKP0+5,  TSGPKP0+6,  TSGPKP0+7,
867c478bd9Sstevel@tonic-gate 	TSGPKP0+8,  TSGPKP0+9,  TSGPKP0+10, TSGPKP0+11,
877c478bd9Sstevel@tonic-gate 	TSGPKP0+12, TSGPKP0+13, TSGPKP0+14, TSGPKP0+15,
887c478bd9Sstevel@tonic-gate 	TSGPKP0+16, TSGPKP0+17, TSGPKP0+18, TSGPKP0+19,
897c478bd9Sstevel@tonic-gate 	TSGPKP0+20, TSGPKP0+21, TSGPKP0+22, TSGPKP0+23,
907c478bd9Sstevel@tonic-gate 	TSGPKP0+24, TSGPKP0+25, TSGPKP0+26, TSGPKP0+27,
917c478bd9Sstevel@tonic-gate 	TSGPKP0+28, TSGPKP0+29, TSGPKP0+30, TSGPKP0+31,
927c478bd9Sstevel@tonic-gate 	TSGPKP0+32, TSGPKP0+33, TSGPKP0+34, TSGPKP0+35,
937c478bd9Sstevel@tonic-gate 	TSGPKP0+36, TSGPKP0+37, TSGPKP0+38, TSGPKP0+39
947c478bd9Sstevel@tonic-gate };
957c478bd9Sstevel@tonic-gate 
967c478bd9Sstevel@tonic-gate tsdpent_t	config_ts_dptbl[] = {
977c478bd9Sstevel@tonic-gate 
987c478bd9Sstevel@tonic-gate /*	glbpri		qntm	tqexp	slprt	mxwt	lwt */
997c478bd9Sstevel@tonic-gate 
1007c478bd9Sstevel@tonic-gate 	TSGPUP0+0,	20,	 0,	50,	    0,	50,
1017c478bd9Sstevel@tonic-gate 	TSGPUP0+1,	20,	 0,	50,	    0,	50,
1027c478bd9Sstevel@tonic-gate 	TSGPUP0+2,	20,	 0,	50,	    0,	50,
1037c478bd9Sstevel@tonic-gate 	TSGPUP0+3,	20,	 0,	50,	    0,	50,
1047c478bd9Sstevel@tonic-gate 	TSGPUP0+4,	20,	 0,	50,	    0,	50,
1057c478bd9Sstevel@tonic-gate 	TSGPUP0+5,	20,	 0,	50,	    0,	50,
1067c478bd9Sstevel@tonic-gate 	TSGPUP0+6,	20,	 0,	50,	    0,	50,
1077c478bd9Sstevel@tonic-gate 	TSGPUP0+7,	20,	 0,	50,	    0,	50,
1087c478bd9Sstevel@tonic-gate 	TSGPUP0+8,	20,	 0,	50,	    0,	50,
1097c478bd9Sstevel@tonic-gate 	TSGPUP0+9,	20,	 0,	50,	    0,	50,
1107c478bd9Sstevel@tonic-gate 	TSGPUP0+10,	16,	 0,	51,	    0,	51,
1117c478bd9Sstevel@tonic-gate 	TSGPUP0+11,	16,	 1,	51,	    0,	51,
1127c478bd9Sstevel@tonic-gate 	TSGPUP0+12,	16,	 2,	51,	    0,	51,
1137c478bd9Sstevel@tonic-gate 	TSGPUP0+13,	16,	 3,	51,	    0,	51,
1147c478bd9Sstevel@tonic-gate 	TSGPUP0+14,	16,	 4,	51,	    0,	51,
1157c478bd9Sstevel@tonic-gate 	TSGPUP0+15,	16,	 5,	51,	    0,	51,
1167c478bd9Sstevel@tonic-gate 	TSGPUP0+16,	16,	 6,	51,	    0,	51,
1177c478bd9Sstevel@tonic-gate 	TSGPUP0+17,	16,	 7,	51,	    0,	51,
1187c478bd9Sstevel@tonic-gate 	TSGPUP0+18,	16,	 8,	51,	    0,	51,
1197c478bd9Sstevel@tonic-gate 	TSGPUP0+19,	16,	 9,	51,	    0,	51,
1207c478bd9Sstevel@tonic-gate 	TSGPUP0+20,	12,	10,	52,	    0,	52,
1217c478bd9Sstevel@tonic-gate 	TSGPUP0+21,	12,	11,	52,	    0,	52,
1227c478bd9Sstevel@tonic-gate 	TSGPUP0+22,	12,	12,	52,	    0,	52,
1237c478bd9Sstevel@tonic-gate 	TSGPUP0+23,	12,	13,	52,	    0,	52,
1247c478bd9Sstevel@tonic-gate 	TSGPUP0+24,	12,	14,	52,	    0,	52,
1257c478bd9Sstevel@tonic-gate 	TSGPUP0+25,	12,	15,	52,	    0,	52,
1267c478bd9Sstevel@tonic-gate 	TSGPUP0+26,	12,	16,	52,	    0,	52,
1277c478bd9Sstevel@tonic-gate 	TSGPUP0+27,	12,	17,	52,	    0,	52,
1287c478bd9Sstevel@tonic-gate 	TSGPUP0+28,	12,	18,	52,	    0,	52,
1297c478bd9Sstevel@tonic-gate 	TSGPUP0+29,	12,	19,	52,	    0,	52,
1307c478bd9Sstevel@tonic-gate 	TSGPUP0+30,	 8,	20,	53,	    0,	53,
1317c478bd9Sstevel@tonic-gate 	TSGPUP0+31,	 8,	21,	53,	    0,	53,
1327c478bd9Sstevel@tonic-gate 	TSGPUP0+32,	 8,	22,	53,	    0,	53,
1337c478bd9Sstevel@tonic-gate 	TSGPUP0+33,	 8,	23,	53,	    0,	53,
1347c478bd9Sstevel@tonic-gate 	TSGPUP0+34,	 8,	24,	53,	    0,	53,
1357c478bd9Sstevel@tonic-gate 	TSGPUP0+35,	 8,	25,	54,	    0,	54,
1367c478bd9Sstevel@tonic-gate 	TSGPUP0+36,	 8,	26,	54,	    0,	54,
1377c478bd9Sstevel@tonic-gate 	TSGPUP0+37,	 8,	27,	54,	    0,	54,
1387c478bd9Sstevel@tonic-gate 	TSGPUP0+38,	 8,	28,	54,	    0,	54,
1397c478bd9Sstevel@tonic-gate 	TSGPUP0+39,	 8,	29,	54,	    0,	54,
1407c478bd9Sstevel@tonic-gate 	TSGPUP0+40,	 4,	30,	55,	    0,	55,
1417c478bd9Sstevel@tonic-gate 	TSGPUP0+41,	 4,	31,	55,	    0,	55,
1427c478bd9Sstevel@tonic-gate 	TSGPUP0+42,	 4,	32,	55,	    0,	55,
1437c478bd9Sstevel@tonic-gate 	TSGPUP0+43,	 4,	33,	55,	    0,	55,
1447c478bd9Sstevel@tonic-gate 	TSGPUP0+44,	 4,	34,	55,	    0,	55,
1457c478bd9Sstevel@tonic-gate 	TSGPUP0+45,	 4,	35,	56,	    0,	56,
1467c478bd9Sstevel@tonic-gate 	TSGPUP0+46,	 4,	36,	57,	    0,	57,
1477c478bd9Sstevel@tonic-gate 	TSGPUP0+47,	 4,	37,	58,	    0,	58,
1487c478bd9Sstevel@tonic-gate 	TSGPUP0+48,	 4,	38,	58,	    0,	58,
1497c478bd9Sstevel@tonic-gate 	TSGPUP0+49,	 4,	39,	58,	    0,	59,
1507c478bd9Sstevel@tonic-gate 	TSGPUP0+50,	 4,	40,	58,	    0,	59,
1517c478bd9Sstevel@tonic-gate 	TSGPUP0+51,	 4,	41,	58,	    0,	59,
1527c478bd9Sstevel@tonic-gate 	TSGPUP0+52,	 4,	42,	58,	    0,	59,
1537c478bd9Sstevel@tonic-gate 	TSGPUP0+53,	 4,	43,	58,	    0,	59,
1547c478bd9Sstevel@tonic-gate 	TSGPUP0+54,	 4,	44,	58,	    0,	59,
1557c478bd9Sstevel@tonic-gate 	TSGPUP0+55,	 4,	45,	58,	    0,	59,
1567c478bd9Sstevel@tonic-gate 	TSGPUP0+56,	 4,	46,	58,	    0,	59,
1577c478bd9Sstevel@tonic-gate 	TSGPUP0+57,	 4,	47,	58,	    0,	59,
1587c478bd9Sstevel@tonic-gate 	TSGPUP0+58,	 4,	48,	58,	    0,	59,
1597c478bd9Sstevel@tonic-gate 	TSGPUP0+59,	 2,	49,	59,	32000,	59
1607c478bd9Sstevel@tonic-gate };
1617c478bd9Sstevel@tonic-gate 
1627c478bd9Sstevel@tonic-gate /*
1637c478bd9Sstevel@tonic-gate  * config_ts_dptbl_server[] is an alternate dispatch table that may
1647c478bd9Sstevel@tonic-gate  * deliver better performance on large server configurations.
1657c478bd9Sstevel@tonic-gate  * This table must be the same size as the default table, config_ts_dptbl.
1667c478bd9Sstevel@tonic-gate  */
1677c478bd9Sstevel@tonic-gate tsdpent_t	config_ts_dptbl_server[] = {
1687c478bd9Sstevel@tonic-gate 
1697c478bd9Sstevel@tonic-gate /*	glbpri		qntm	tqexp	slprt	mxwt	lwt */
1707c478bd9Sstevel@tonic-gate 
1717c478bd9Sstevel@tonic-gate 	TSGPUP0+0,	40,	 0,	 1,	    2,	40,
1727c478bd9Sstevel@tonic-gate 	TSGPUP0+1,	38,	 0,	 2,	    2,	40,
1737c478bd9Sstevel@tonic-gate 	TSGPUP0+2,	38,	 1,	 3,	    2,	40,
1747c478bd9Sstevel@tonic-gate 	TSGPUP0+3,	38,	 1,	 4,	    2,	40,
1757c478bd9Sstevel@tonic-gate 	TSGPUP0+4,	38,	 2,	 5,	    2,	40,
1767c478bd9Sstevel@tonic-gate 	TSGPUP0+5,	38,	 2,	 6,	    2,	40,
1777c478bd9Sstevel@tonic-gate 	TSGPUP0+6,	38,	 3,	 7,	    2,	40,
1787c478bd9Sstevel@tonic-gate 	TSGPUP0+7,	38,	 3,	 8,	    2,	40,
1797c478bd9Sstevel@tonic-gate 	TSGPUP0+8,	38,	 4,	 9,	    2,	40,
1807c478bd9Sstevel@tonic-gate 	TSGPUP0+9,	38,	 4,	10,	    2,	40,
1817c478bd9Sstevel@tonic-gate 	TSGPUP0+10,	38,	 5,	11,	    2,	40,
1827c478bd9Sstevel@tonic-gate 	TSGPUP0+11,	38,	 5,	12,	    2,	40,
1837c478bd9Sstevel@tonic-gate 	TSGPUP0+12,	38,	 6,	13,	    2,	40,
1847c478bd9Sstevel@tonic-gate 	TSGPUP0+13,	38,	 6,	14,	    2,	40,
1857c478bd9Sstevel@tonic-gate 	TSGPUP0+14,	38,	 7,	15,	    2,	40,
1867c478bd9Sstevel@tonic-gate 	TSGPUP0+15,	38,	 7,	16,	    2,	40,
1877c478bd9Sstevel@tonic-gate 	TSGPUP0+16,	38,	 8,	17,	    2,	40,
1887c478bd9Sstevel@tonic-gate 	TSGPUP0+17,	38,	 8,	18,	    2,	40,
1897c478bd9Sstevel@tonic-gate 	TSGPUP0+18,	38,	 9,	19,	    2,	40,
1907c478bd9Sstevel@tonic-gate 	TSGPUP0+19,	38,	 9,	20,	    2,	40,
1917c478bd9Sstevel@tonic-gate 	TSGPUP0+20,	36,	10,	21,	    2,	40,
1927c478bd9Sstevel@tonic-gate 	TSGPUP0+21,	36,	11,	22,	    2,	40,
1937c478bd9Sstevel@tonic-gate 	TSGPUP0+22,	36,	12,	23,	    2,	40,
1947c478bd9Sstevel@tonic-gate 	TSGPUP0+23,	36,	13,	24,	    2,	40,
1957c478bd9Sstevel@tonic-gate 	TSGPUP0+24,	36,	14,	25,	    2,	40,
1967c478bd9Sstevel@tonic-gate 	TSGPUP0+25,	36,	15,	26,	    2,	40,
1977c478bd9Sstevel@tonic-gate 	TSGPUP0+26,	36,	16,	27,	    2,	40,
1987c478bd9Sstevel@tonic-gate 	TSGPUP0+27,	36,	17,	28,	    2,	40,
1997c478bd9Sstevel@tonic-gate 	TSGPUP0+28,	36,	18,	29,	    2,	40,
2007c478bd9Sstevel@tonic-gate 	TSGPUP0+29,	36,	19,	30,	    2,	40,
2017c478bd9Sstevel@tonic-gate 	TSGPUP0+30,	36,	20,	31,	    2,	40,
2027c478bd9Sstevel@tonic-gate 	TSGPUP0+31,	36,	21,	32,	    2,	40,
2037c478bd9Sstevel@tonic-gate 	TSGPUP0+32,	36,	22,	33,	    2,	40,
2047c478bd9Sstevel@tonic-gate 	TSGPUP0+33,	36,	23,	34,	    2,	40,
2057c478bd9Sstevel@tonic-gate 	TSGPUP0+34,	36,	24,	35,	    2,	40,
2067c478bd9Sstevel@tonic-gate 	TSGPUP0+35,	36,	25,	36,	    2,	40,
2077c478bd9Sstevel@tonic-gate 	TSGPUP0+36,	36,	26,	37,	    2,	40,
2087c478bd9Sstevel@tonic-gate 	TSGPUP0+37,	36,	27,	38,	    2,	40,
2097c478bd9Sstevel@tonic-gate 	TSGPUP0+38,	36,	28,	39,	    2,	40,
2107c478bd9Sstevel@tonic-gate 	TSGPUP0+39,	36,	29,	40,	    2,	40,
2117c478bd9Sstevel@tonic-gate 	TSGPUP0+40,	36,	30,	41,	    2,	41,
2127c478bd9Sstevel@tonic-gate 	TSGPUP0+41,	34,	31,	42,	    2,	42,
2137c478bd9Sstevel@tonic-gate 	TSGPUP0+42,	34,	32,	43,	    2,	43,
2147c478bd9Sstevel@tonic-gate 	TSGPUP0+43,	34,	33,	44,	    2,	44,
2157c478bd9Sstevel@tonic-gate 	TSGPUP0+44,	34,	34,	45,	    2,	45,
2167c478bd9Sstevel@tonic-gate 	TSGPUP0+45,	34,	35,	46,	    2,	46,
2177c478bd9Sstevel@tonic-gate 	TSGPUP0+46,	34,	36,	47,	    2,	47,
2187c478bd9Sstevel@tonic-gate 	TSGPUP0+47,	34,	37,	48,	    2,	48,
2197c478bd9Sstevel@tonic-gate 	TSGPUP0+48,	34,	38,	49,	    2,	49,
2207c478bd9Sstevel@tonic-gate 	TSGPUP0+49,	34,	39,	50,	    2,	50,
2217c478bd9Sstevel@tonic-gate 	TSGPUP0+50,	34,	40,	51,	    2,	51,
2227c478bd9Sstevel@tonic-gate 	TSGPUP0+51,	34,	41,	52,	    2,	52,
2237c478bd9Sstevel@tonic-gate 	TSGPUP0+52,	34,	42,	53,	    2,	53,
2247c478bd9Sstevel@tonic-gate 	TSGPUP0+53,	34,	43,	54,	    2,	54,
2257c478bd9Sstevel@tonic-gate 	TSGPUP0+54,	34,	44,	55,	    2,	55,
2267c478bd9Sstevel@tonic-gate 	TSGPUP0+55,	34,	45,	56,	    2,	56,
2277c478bd9Sstevel@tonic-gate 	TSGPUP0+56,	34,	46,	57,	    2,	57,
2287c478bd9Sstevel@tonic-gate 	TSGPUP0+57,	34,	47,	58,	    2,	58,
2297c478bd9Sstevel@tonic-gate 	TSGPUP0+58,	34,	48,	59,	    2,	59,
2307c478bd9Sstevel@tonic-gate 	TSGPUP0+59,	34,	49,	59,	    2,	59
2317c478bd9Sstevel@tonic-gate };
2327c478bd9Sstevel@tonic-gate 
2337c478bd9Sstevel@tonic-gate 
2347c478bd9Sstevel@tonic-gate 
2357c478bd9Sstevel@tonic-gate pri_t config_ts_maxumdpri = sizeof (config_ts_dptbl) / sizeof (tsdpent_t) - 1;
2367c478bd9Sstevel@tonic-gate 
2377c478bd9Sstevel@tonic-gate /*
2387c478bd9Sstevel@tonic-gate  * Return the address of config_ts_dptbl
2397c478bd9Sstevel@tonic-gate  */
2407c478bd9Sstevel@tonic-gate tsdpent_t *
ts_getdptbl()2417c478bd9Sstevel@tonic-gate ts_getdptbl()
2427c478bd9Sstevel@tonic-gate {
2437c478bd9Sstevel@tonic-gate 	/*
2447c478bd9Sstevel@tonic-gate 	 * If ts_dispatch_extended is -1, set it to 0x0
2457c478bd9Sstevel@tonic-gate 	 * to choose the default TS table.
2467c478bd9Sstevel@tonic-gate 	 */
2477c478bd9Sstevel@tonic-gate 	if (ts_dispatch_extended == -1)
2487c478bd9Sstevel@tonic-gate 		ts_dispatch_extended = 0;
2497c478bd9Sstevel@tonic-gate 
2507c478bd9Sstevel@tonic-gate 	/*
2517c478bd9Sstevel@tonic-gate 	 * If ts_dispatch_extended is non-zero, use the
2527c478bd9Sstevel@tonic-gate 	 * "large server style" TS dispatch table.
2537c478bd9Sstevel@tonic-gate 	 */
2547c478bd9Sstevel@tonic-gate 	if (ts_dispatch_extended)
2557c478bd9Sstevel@tonic-gate 		return (config_ts_dptbl_server);
2567c478bd9Sstevel@tonic-gate 	else
2577c478bd9Sstevel@tonic-gate 		return (config_ts_dptbl);
2587c478bd9Sstevel@tonic-gate }
2597c478bd9Sstevel@tonic-gate 
2607c478bd9Sstevel@tonic-gate /*
2617c478bd9Sstevel@tonic-gate  * Return the address of config_ts_kmdpris
2627c478bd9Sstevel@tonic-gate  */
2637c478bd9Sstevel@tonic-gate pri_t *
ts_getkmdpris()2647c478bd9Sstevel@tonic-gate ts_getkmdpris()
2657c478bd9Sstevel@tonic-gate {
2667c478bd9Sstevel@tonic-gate 	return (config_ts_kmdpris);
2677c478bd9Sstevel@tonic-gate }
2687c478bd9Sstevel@tonic-gate 
2697c478bd9Sstevel@tonic-gate /*
2707c478bd9Sstevel@tonic-gate  * Return the address of ts_maxumdpri
2717c478bd9Sstevel@tonic-gate  */
2727c478bd9Sstevel@tonic-gate pri_t
ts_getmaxumdpri()2737c478bd9Sstevel@tonic-gate ts_getmaxumdpri()
2747c478bd9Sstevel@tonic-gate {
2757c478bd9Sstevel@tonic-gate 	/*
2767c478bd9Sstevel@tonic-gate 	 * The config_ts_dptbl_server table must be the same size as
2777c478bd9Sstevel@tonic-gate 	 * the config_ts_dptbl table.
2787c478bd9Sstevel@tonic-gate 	 */
2797c478bd9Sstevel@tonic-gate 	/*LINTED*/
2807c478bd9Sstevel@tonic-gate 	ASSERT(sizeof (config_ts_dptbl) == sizeof (config_ts_dptbl_server));
2817c478bd9Sstevel@tonic-gate 	return (config_ts_maxumdpri);
2827c478bd9Sstevel@tonic-gate }
283