diff options
author | Brian Behlendorf <[email protected]> | 2009-07-09 10:07:52 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2009-07-09 10:07:52 -0700 |
commit | 915404bd509e5231c134042560d86e3ac86c1ab4 (patch) | |
tree | 0de8503858a15030764ccb144e7a8150def5fcd7 /include | |
parent | aaad2f7226d26c8ca3575830d07aa08363f346b3 (diff) |
Add basic support for TASKQ_THREADS_CPU_PCT taskq flag which is
used to scale the number of threads based on the number of online
CPUs. As CPUs are added/removed we should rescale the thread
count appropriately, but currently this is only done at create.
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/taskq.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sys/taskq.h b/include/sys/taskq.h index 0b8623103..603fde680 100644 --- a/include/sys/taskq.h +++ b/include/sys/taskq.h @@ -44,6 +44,7 @@ extern "C" { #define TASKQ_PREPOPULATE 0x00000001 #define TASKQ_CPR_SAFE 0x00000002 #define TASKQ_DYNAMIC 0x00000004 +#define TASKQ_THREADS_CPU_PCT 0x00000008 typedef unsigned long taskqid_t; typedef void (task_func_t)(void *); |