constify wait channels of ltsleep/wakeup. they are never dereferenced.
This commit is contained in:
parent
938c539a86
commit
05628fc8d1
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kern_synch.c,v 1.124 2003/01/22 12:52:15 yamt Exp $ */
|
||||
/* $NetBSD: kern_synch.c,v 1.125 2003/02/04 13:41:50 yamt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
|
||||
|
@ -78,7 +78,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: kern_synch.c,v 1.124 2003/01/22 12:52:15 yamt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: kern_synch.c,v 1.125 2003/02/04 13:41:50 yamt Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_ktrace.h"
|
||||
|
@ -379,7 +379,7 @@ int safepri;
|
|||
* interlock will always be unlocked upon return.
|
||||
*/
|
||||
int
|
||||
ltsleep(void *ident, int priority, const char *wmesg, int timo,
|
||||
ltsleep(const void *ident, int priority, const char *wmesg, int timo,
|
||||
__volatile struct simplelock *interlock)
|
||||
{
|
||||
struct lwp *l = curlwp;
|
||||
|
@ -650,7 +650,7 @@ sched_lock_idle(void)
|
|||
*/
|
||||
|
||||
void
|
||||
wakeup(void *ident)
|
||||
wakeup(const void *ident)
|
||||
{
|
||||
int s;
|
||||
|
||||
|
@ -662,7 +662,7 @@ wakeup(void *ident)
|
|||
}
|
||||
|
||||
void
|
||||
sched_wakeup(void *ident)
|
||||
sched_wakeup(const void *ident)
|
||||
{
|
||||
struct slpque *qp;
|
||||
struct lwp *l, **q;
|
||||
|
@ -696,7 +696,7 @@ sched_wakeup(void *ident)
|
|||
* identifier runnable.
|
||||
*/
|
||||
void
|
||||
wakeup_one(void *ident)
|
||||
wakeup_one(const void *ident)
|
||||
{
|
||||
struct slpque *qp;
|
||||
struct lwp *l, **q;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: lwp.h,v 1.5 2003/02/02 20:34:42 matt Exp $ */
|
||||
/* $NetBSD: lwp.h,v 1.6 2003/02/04 13:41:48 yamt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -68,7 +68,7 @@ struct lwp {
|
|||
u_int l_swtime; /* Time swapped in or out. */
|
||||
u_int l_slptime; /* Time since last blocked. */
|
||||
|
||||
void *l_wchan; /* Sleep address. */
|
||||
const void *l_wchan; /* Sleep address. */
|
||||
struct callout l_tsleep_ch; /* callout for tsleep */
|
||||
const char *l_wmesg; /* Reason for sleep. */
|
||||
int l_holdcnt; /* If non-zero, don't swap. */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: proc.h,v 1.156 2003/02/01 06:23:51 thorpej Exp $ */
|
||||
/* $NetBSD: proc.h,v 1.157 2003/02/04 13:41:49 yamt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1986, 1989, 1991, 1993
|
||||
|
@ -430,10 +430,10 @@ void pgdelete(struct pgrp *pgrp);
|
|||
void procinit(void);
|
||||
void resetprocpriority(struct proc *);
|
||||
void suspendsched(void);
|
||||
int ltsleep(void *chan, int pri, const char *wmesg, int timo,
|
||||
int ltsleep(const void *chan, int pri, const char *wmesg, int timo,
|
||||
__volatile struct simplelock *);
|
||||
void wakeup(void *chan);
|
||||
void wakeup_one(void *chan);
|
||||
void wakeup(const void *chan);
|
||||
void wakeup_one(const void *chan);
|
||||
void reaper(void *);
|
||||
void exit1(struct lwp *, int);
|
||||
void exit2(struct lwp *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: sched.h,v 1.15 2003/01/18 09:53:20 thorpej Exp $ */
|
||||
/* $NetBSD: sched.h,v 1.16 2003/02/04 13:41:49 yamt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999, 2000, 2001, 2002 The NetBSD Foundation, Inc.
|
||||
|
@ -206,7 +206,7 @@ struct proc;
|
|||
struct cpu_info;
|
||||
|
||||
void schedclock(struct lwp *p);
|
||||
void sched_wakeup(void *);
|
||||
void sched_wakeup(const void *);
|
||||
void roundrobin(struct cpu_info *);
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue