summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Dufault <dufault@FreeBSD.org>2000-03-02 22:03:49 +0000
committerPeter Dufault <dufault@FreeBSD.org>2000-03-02 22:03:49 +0000
commit6d9a8d3e8fa24da456346fa8110bc45797a2bc33 (patch)
treeed2cf0f3ef6926457ad30ae4ac1c6c0b510096bc
parent14283480b34461f63b586dc322f63c8eac25f1cc (diff)
Notes
-rw-r--r--sys/alpha/alpha/trap.c1
-rw-r--r--sys/amd64/amd64/trap.c1
-rw-r--r--sys/i386/i386/trap.c1
-rw-r--r--sys/kern/kern_synch.c7
-rw-r--r--sys/kern/subr_trap.c1
-rw-r--r--sys/sys/systm.h1
6 files changed, 1 insertions, 11 deletions
diff --git a/sys/alpha/alpha/trap.c b/sys/alpha/alpha/trap.c
index b7c8b47a7db4..7e9b15e82651 100644
--- a/sys/alpha/alpha/trap.c
+++ b/sys/alpha/alpha/trap.c
@@ -129,7 +129,6 @@ userret(p, pc, oticks)
}
curpriority = p->p_priority;
- currtpriority = p->p_rtprio.prio;
}
static void
diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c
index 836555c905a8..a8b73cf6a02b 100644
--- a/sys/amd64/amd64/trap.c
+++ b/sys/amd64/amd64/trap.c
@@ -196,7 +196,6 @@ userret(p, frame, oticks)
(u_int)(p->p_sticks - oticks) * psratio);
curpriority = p->p_priority;
- currtpriority = p->p_rtprio.prio;
}
/*
diff --git a/sys/i386/i386/trap.c b/sys/i386/i386/trap.c
index 836555c905a8..a8b73cf6a02b 100644
--- a/sys/i386/i386/trap.c
+++ b/sys/i386/i386/trap.c
@@ -196,7 +196,6 @@ userret(p, frame, oticks)
(u_int)(p->p_sticks - oticks) * psratio);
curpriority = p->p_priority;
- currtpriority = p->p_rtprio.prio;
}
/*
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c
index 8d0a8ee9ce27..a590506ecd45 100644
--- a/sys/kern/kern_synch.c
+++ b/sys/kern/kern_synch.c
@@ -65,7 +65,6 @@ static void sched_setup __P((void *dummy));
SYSINIT(sched_setup, SI_SUB_KICK_SCHEDULER, SI_ORDER_FIRST, sched_setup, NULL)
u_char curpriority;
-u_char currtpriority;
int hogticks;
int lbolt;
int sched_quantum; /* Roundrobin scheduling quantum in ticks. */
@@ -112,15 +111,13 @@ curpriority_cmp(p)
{
int c_class, p_class;
- if (curproc->p_rtprio.prio != currtpriority)
- Debugger("currtprio");
c_class = RTP_PRIO_BASE(curproc->p_rtprio.type);
p_class = RTP_PRIO_BASE(p->p_rtprio.type);
if (p_class != c_class)
return (p_class - c_class);
if (p_class == RTP_PRIO_NORMAL)
return (((int)p->p_priority - (int)curpriority) / PPQ);
- return ((int)p->p_rtprio.prio - (int)currtpriority);
+ return ((int)p->p_rtprio.prio - (int)curproc->p_rtprio.prio);
}
/*
@@ -471,7 +468,6 @@ tsleep(ident, priority, wmesg, timo)
mi_switch();
resume:
curpriority = p->p_usrpri;
- currtpriority = p->p_rtprio.prio;
splx(s);
p->p_flag &= ~P_SINTR;
if (p->p_flag & P_TIMEOUT) {
@@ -611,7 +607,6 @@ await(int priority, int timo)
mi_switch();
resume:
curpriority = p->p_usrpri;
- currtpriority = p->p_rtprio.prio;
splx(s);
p->p_flag &= ~P_SINTR;
diff --git a/sys/kern/subr_trap.c b/sys/kern/subr_trap.c
index 836555c905a8..a8b73cf6a02b 100644
--- a/sys/kern/subr_trap.c
+++ b/sys/kern/subr_trap.c
@@ -196,7 +196,6 @@ userret(p, frame, oticks)
(u_int)(p->p_sticks - oticks) * psratio);
curpriority = p->p_priority;
- currtpriority = p->p_rtprio.prio;
}
/*
diff --git a/sys/sys/systm.h b/sys/sys/systm.h
index 28983895e2e7..3c2d7847cd76 100644
--- a/sys/sys/systm.h
+++ b/sys/sys/systm.h
@@ -59,7 +59,6 @@ extern int nswap; /* size of swap space */
extern int selwait; /* select timeout address */
extern u_char curpriority; /* priority of current process */
-extern u_char currtpriority; /* realtime priority of current process */
extern int physmem; /* physical memory */