summaryrefslogtreecommitdiffstats
path: root/sys/sys/thr.h
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2006-09-21 04:18:46 +0000
committerdavidxu <davidxu@FreeBSD.org>2006-09-21 04:18:46 +0000
commitbac7c2b79df4175e5699c772855883a08ec9d26f (patch)
tree50ceeec061f18908fb2f17759d6dfce93e7f8c1c /sys/sys/thr.h
parent7f7d9b26927dd1d1ede3581216293ff4168acb9f (diff)
downloadFreeBSD-src-bac7c2b79df4175e5699c772855883a08ec9d26f.zip
FreeBSD-src-bac7c2b79df4175e5699c772855883a08ec9d26f.tar.gz
Replace system call thr_getscheduler, thr_setscheduler, thr_setschedparam
with rtprio_thread, while rtprio system call is for process only, the new system call rtprio_thread is responsible for LWP.
Diffstat (limited to 'sys/sys/thr.h')
-rw-r--r--sys/sys/thr.h16
1 files changed, 2 insertions, 14 deletions
diff --git a/sys/sys/thr.h b/sys/sys/thr.h
index c6153d0..bd2723e 100644
--- a/sys/sys/thr.h
+++ b/sys/sys/thr.h
@@ -32,11 +32,6 @@
#include <posix4/sched.h>
-struct thr_sched_param {
- int policy;
- struct sched_param param;
-};
-
/* Create the thread in the suspended state. */
#define THR_SUSPENDED 0x0001
/* Create the system scope thread. */
@@ -52,9 +47,8 @@ struct thr_param {
long *child_tid; /* address to store new TID. */
long *parent_tid; /* parent accesses the new TID here. */
int flags; /* thread flags. */
- struct thr_sched_param *sched_param; /* POSIX scheduler parameters .*/
- long sched_param_size; /* scheduler parameter size */
- void *spare[2]; /* TODO: cpu affinity mask etc. */
+ struct rtprio *rtp; /* Real-time scheduling priority */
+ void *spare[3]; /* TODO: cpu affinity mask etc. */
};
/*
@@ -70,12 +64,6 @@ int thr_kill(long id, int sig);
int thr_suspend(const struct timespec *timeout);
int thr_wake(long id);
int thr_set_name(long id, const char *name);
-int thr_setscheduler(long id, int policy, const struct sched_param *param,
- int param_size);
-int thr_getscheduler(long id, int *policy, struct sched_param *param,
- int param_size);
-int thr_setschedparam(long id, const struct sched_param *param,
- int param_size);
#endif /* !_KERNEL */
#endif /* ! _SYS_THR_H_ */
OpenPOWER on IntegriCloud