diff options
author | Jonathan Adams <Jonathan.Adams@Sun.COM> | 2009-11-23 15:29:44 -0800 |
---|---|---|
committer | Jonathan Adams <Jonathan.Adams@Sun.COM> | 2009-11-23 15:29:44 -0800 |
commit | 35a5a3587fd94b666239c157d3722745250ccbd7 (patch) | |
tree | 5b1d8a35d4b4129747989cd4857cdd21d5a223aa /usr/src/uts/common/sys/class.h | |
parent | 023e71de9e5670cebc23dd51162833661d3d2d3b (diff) | |
download | illumos-gate-35a5a3587fd94b666239c157d3722745250ccbd7.tar.gz |
6881015 ZFS write activity prevents other threads from running in a timely manner
6899867 mstate_thread_onproc_time() doesn't account for runnable time correctly
PSARC/2009/615 System Duty Cycle Scheduling Class and ZFS IO Observability
Diffstat (limited to 'usr/src/uts/common/sys/class.h')
-rw-r--r-- | usr/src/uts/common/sys/class.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr/src/uts/common/sys/class.h b/usr/src/uts/common/sys/class.h index 9ec496fdbb..8487942ea2 100644 --- a/usr/src/uts/common/sys/class.h +++ b/usr/src/uts/common/sys/class.h @@ -20,7 +20,7 @@ */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -30,8 +30,6 @@ #ifndef _SYS_CLASS_H #define _SYS_CLASS_H -#pragma ident "%Z%%M% %I% %E% SMI" - #include <sys/t_lock.h> #include <sys/cred.h> #include <sys/thread.h> @@ -119,6 +117,8 @@ typedef struct sclass { #ifdef _KERNEL +#define CLASS_KERNEL(cid) ((cid) == syscid || (cid) == sysdccid) + extern int nclass; /* number of configured scheduling classes */ extern char *defaultclass; /* default class for newproc'd processes */ extern struct sclass sclass[]; /* the class table */ @@ -127,6 +127,7 @@ extern int loaded_classes; /* number of classes loaded */ extern pri_t minclsyspri; extern id_t syscid; /* system scheduling class ID */ +extern id_t sysdccid; /* system duty-cycle scheduling class ID */ extern id_t defaultcid; /* "default" class id; see dispadmin(1M) */ extern int alloc_cid(char *, id_t *); |