summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/disp/sysclass.c
diff options
context:
space:
mode:
authorakolb <none@none>2007-03-09 15:55:28 -0800
committerakolb <none@none>2007-03-09 15:55:28 -0800
commitc97ad5cdc75eb73e3cc38542ca3ba783574b0a7a (patch)
tree5ba1653d892978d87d6061c8c7f3821f4b3e354c /usr/src/uts/common/disp/sysclass.c
parent68d3ac02fc9db49ae9dccaecff999963114930a7 (diff)
downloadillumos-gate-c97ad5cdc75eb73e3cc38542ca3ba783574b0a7a.tar.gz
PSARC/2004/402 CPU Caps
6327235 PSARC/2004/402 CPU caps 6464161 Dead KSLICE code should be removed 6514387 FX class contains dead code to keep list of member threads 6518395 kstat_zone_add performs KM_SLEEP allocation when it should not
Diffstat (limited to 'usr/src/uts/common/disp/sysclass.c')
-rw-r--r--usr/src/uts/common/disp/sysclass.c31
1 files changed, 6 insertions, 25 deletions
diff --git a/usr/src/uts/common/disp/sysclass.c b/usr/src/uts/common/disp/sysclass.c
index 9f266dd7e7..d48cc3145e 100644
--- a/usr/src/uts/common/disp/sysclass.c
+++ b/usr/src/uts/common/disp/sysclass.c
@@ -2,9 +2,8 @@
* 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.
+ * Common Development and Distribution License (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
* or http://www.opensolaris.org/os/licensing.
@@ -19,9 +18,10 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright (c) 1996-2001 by Sun Microsystems, Inc.
- * All rights reserved.
+ * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
@@ -98,11 +98,7 @@ struct classfuncs sys_classfuncs = {
sys_swappri, /* swapin */
sys_swappri, /* swapout */
sys_nullsys, /* trapret */
-#ifdef KSLICE
- sys_preempt,
-#else
- setfrontdq,
-#endif
+ setfrontdq, /* preempt */
setbackdq, /* setrun */
sys_nullsys, /* sleep */
sys_nullsys, /* tick */
@@ -218,21 +214,6 @@ sys_nullsys()
{
}
-#ifdef KSLICE
-static void
-sys_preempt(t)
- kthread_id_t t;
-{
- extern int kslice;
-
- if (kslice)
- setbackdq(t);
- else
- setfrontdq(t);
-}
-#endif
-
-
/* ARGSUSED */
static int
sys_donice(t, cr, incr, retvalp)