aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_umtx.c
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>2006-12-06 06:34:57 +0000
committerJulian Elischer <julian@FreeBSD.org>2006-12-06 06:34:57 +0000
commitad1e7d285ab101b694e6d7a0cdbf7ec10c8dbdce (patch)
treec0bf9a3a56052122c3c551fe189b4979f9bf745b /sys/kern/kern_umtx.c
parent3541d6d881a39e47b2234dbf68db6b5030aca334 (diff)
downloadsrc-ad1e7d285ab101b694e6d7a0cdbf7ec10c8dbdce.tar.gz
src-ad1e7d285ab101b694e6d7a0cdbf7ec10c8dbdce.zip
Threading cleanup.. part 2 of several.
Make part of John Birrell's KSE patch permanent.. Specifically, remove: Any reference of the ksegrp structure. This feature was never fully utilised and made things overly complicated. All code in the scheduler that tried to make threaded programs fair to unthreaded programs. Libpthread processes will already do this to some extent and libthr processes already disable it. Also: Since this makes such a big change to the scheduler(s), take the opportunity to rename some structures and elements that had to be moved anyhow. This makes the code a lot more readable. The ULE scheduler compiles again but I have no idea if it works. The 4bsd scheduler still reqires a little cleaning and some functions that now do ALMOST nothing will go away, but I thought I'd do that as a separate commit. Tested by David Xu, and Dan Eischen using libthr and libpthread.
Notes
Notes: svn path=/head/; revision=164936
Diffstat (limited to 'sys/kern/kern_umtx.c')
-rw-r--r--sys/kern/kern_umtx.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/kern/kern_umtx.c b/sys/kern/kern_umtx.c
index 328fb576626c..645f02df8643 100644
--- a/sys/kern/kern_umtx.c
+++ b/sys/kern/kern_umtx.c
@@ -167,15 +167,9 @@ struct umtxq_chain {
* if it is using 100%CPU, this is unfair to other processes.
*/
-#ifdef KSE
-#define UPRI(td) (((td)->td_ksegrp->kg_user_pri >= PRI_MIN_TIMESHARE &&\
- (td)->td_ksegrp->kg_user_pri <= PRI_MAX_TIMESHARE) ?\
- PRI_MAX_TIMESHARE : (td)->td_ksegrp->kg_user_pri)
-#else
#define UPRI(td) (((td)->td_user_pri >= PRI_MIN_TIMESHARE &&\
(td)->td_user_pri <= PRI_MAX_TIMESHARE) ?\
PRI_MAX_TIMESHARE : (td)->td_user_pri)
-#endif
#define GOLDEN_RATIO_PRIME 2654404609U
#define UMTX_CHAINS 128