summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2005-12-15 16:30:41 +0000
committerjhb <jhb@FreeBSD.org>2005-12-15 16:30:41 +0000
commitfeebef55c2317813d83aad8ae1afc57eabf9e66c (patch)
tree9ff4a437747bbe0b48bd25f41d4235f7b041fd28 /sys/compat
parent3abe21faf25d6ec4ac2be98d89714858d87f7203 (diff)
downloadFreeBSD-src-feebef55c2317813d83aad8ae1afc57eabf9e66c.zip
FreeBSD-src-feebef55c2317813d83aad8ae1afc57eabf9e66c.tar.gz
Remove linux_mib_destroy() (which I actually added in between 5.0 and 5.1)
which existed to cleanup the linux_osname mutex. Now that MTX_SYSINIT() has grown a SYSUNINIT to destroy mutexes on unload, the extra destroy here was redundant and resulted in panics in debug kernels. MFC after: 1 week Reported by: Goran Gajic ggajic at afrodita dot rcub dot bg dot ac dot yu
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linux/linux_mib.c7
-rw-r--r--sys/compat/linux/linux_mib.h2
2 files changed, 0 insertions, 9 deletions
diff --git a/sys/compat/linux/linux_mib.c b/sys/compat/linux/linux_mib.c
index 916e8ea..0721d52 100644
--- a/sys/compat/linux/linux_mib.c
+++ b/sys/compat/linux/linux_mib.c
@@ -156,13 +156,6 @@ linux_get_prison(struct thread *td)
}
void
-linux_mib_destroy(void)
-{
-
- mtx_destroy(&osname_lock);
-}
-
-void
linux_get_osname(struct thread *td, char *dst)
{
register struct prison *pr;
diff --git a/sys/compat/linux/linux_mib.h b/sys/compat/linux/linux_mib.h
index b68e57f..42d9d89 100644
--- a/sys/compat/linux/linux_mib.h
+++ b/sys/compat/linux/linux_mib.h
@@ -31,8 +31,6 @@
#ifndef _LINUX_MIB_H_
#define _LINUX_MIB_H_
-void linux_mib_destroy(void);
-
void linux_get_osname(struct thread *td, char *dst);
int linux_set_osname(struct thread *td, char *osname);
OpenPOWER on IntegriCloud