mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 09:10:28 +00:00
Remove compat shims for FreeBSD versions older than 6 (really early 5).
The only diffs in the disassembly were different line numbers passed to lock functions.
This commit is contained in:
parent
7fc5f32950
commit
d17591488e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=276754
|
@ -4164,9 +4164,7 @@ ciss_notify_thread(void *arg)
|
|||
struct ciss_notify *cn;
|
||||
|
||||
sc = (struct ciss_softc *)arg;
|
||||
#if __FreeBSD_version >= 500000
|
||||
mtx_lock(&sc->ciss_mtx);
|
||||
#endif
|
||||
|
||||
for (;;) {
|
||||
if (STAILQ_EMPTY(&sc->ciss_notify) != 0 &&
|
||||
|
@ -4201,9 +4199,7 @@ ciss_notify_thread(void *arg)
|
|||
sc->ciss_notify_thread = NULL;
|
||||
wakeup(&sc->ciss_notify_thread);
|
||||
|
||||
#if __FreeBSD_version >= 500000
|
||||
mtx_unlock(&sc->ciss_mtx);
|
||||
#endif
|
||||
kproc_exit(0);
|
||||
}
|
||||
|
||||
|
@ -4214,15 +4210,9 @@ static void
|
|||
ciss_spawn_notify_thread(struct ciss_softc *sc)
|
||||
{
|
||||
|
||||
#if __FreeBSD_version > 500005
|
||||
if (kproc_create((void(*)(void *))ciss_notify_thread, sc,
|
||||
&sc->ciss_notify_thread, 0, 0, "ciss_notify%d",
|
||||
device_get_unit(sc->ciss_dev)))
|
||||
#else
|
||||
if (kproc_create((void(*)(void *))ciss_notify_thread, sc,
|
||||
&sc->ciss_notify_thread, "ciss_notify%d",
|
||||
device_get_unit(sc->ciss_dev)))
|
||||
#endif
|
||||
panic("Could not create notify thread\n");
|
||||
}
|
||||
|
||||
|
|
|
@ -76,14 +76,6 @@ typedef STAILQ_HEAD(, ciss_request) cr_qhead_t;
|
|||
*/
|
||||
#define CISS_HEARTBEAT_RATE 10
|
||||
|
||||
/************************************************************************
|
||||
* Compatibility with older versions of FreeBSD
|
||||
*/
|
||||
#if __FreeBSD_version < 440001
|
||||
#warning testing old-FreeBSD compat
|
||||
typedef struct proc d_thread_t;
|
||||
#endif
|
||||
|
||||
/************************************************************************
|
||||
* Driver version. Only really significant to the ACU interface.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue