summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2006-07-28 19:05:28 +0000
committerjhb <jhb@FreeBSD.org>2006-07-28 19:05:28 +0000
commitc62c38439fd8a2fd4a6e5fe8d9c4bcda438e6010 (patch)
treecc5695072b3b30d9c9cd45487beb493d692b8a26 /sys/powerpc
parent6a211b6d81725475d5c4891b35cbbe3fe7397102 (diff)
downloadFreeBSD-src-c62c38439fd8a2fd4a6e5fe8d9c4bcda438e6010.zip
FreeBSD-src-c62c38439fd8a2fd4a6e5fe8d9c4bcda438e6010.tar.gz
Now that all system calls are MPSAFE, retire the SYF_MPSAFE flag used to
mark system calls as being MPSAFE: - Stop conditionally acquiring Giant around system call invocations. - Remove all of the 'M' prefixes from the master system call files. - Remove support for the 'M' prefix from the script that generates the syscall-related files from the master system call files. - Don't explicitly set SYF_MPSAFE when registering nfssvc.
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/aim/trap.c9
-rw-r--r--sys/powerpc/powerpc/trap.c9
2 files changed, 0 insertions, 18 deletions
diff --git a/sys/powerpc/aim/trap.c b/sys/powerpc/aim/trap.c
index 0f5961b..da34c26 100644
--- a/sys/powerpc/aim/trap.c
+++ b/sys/powerpc/aim/trap.c
@@ -409,11 +409,6 @@ syscall(struct trapframe *frame)
if (KTRPOINT(td, KTR_SYSCALL))
ktrsyscall(code, narg, (register_t *)params);
#endif
- /*
- * Try to run the syscall without Giant if the syscall is MP safe.
- */
- if ((callp->sy_narg & SYF_MPSAFE) == 0)
- mtx_lock(&Giant);
if (error == 0) {
td->td_retval[0] = 0;
@@ -466,10 +461,6 @@ syscall(struct trapframe *frame)
break;
}
-
- if ((callp->sy_narg & SYF_MPSAFE) == 0)
- mtx_unlock(&Giant);
-
/*
* Check for misbehavior.
*/
diff --git a/sys/powerpc/powerpc/trap.c b/sys/powerpc/powerpc/trap.c
index 0f5961b..da34c26 100644
--- a/sys/powerpc/powerpc/trap.c
+++ b/sys/powerpc/powerpc/trap.c
@@ -409,11 +409,6 @@ syscall(struct trapframe *frame)
if (KTRPOINT(td, KTR_SYSCALL))
ktrsyscall(code, narg, (register_t *)params);
#endif
- /*
- * Try to run the syscall without Giant if the syscall is MP safe.
- */
- if ((callp->sy_narg & SYF_MPSAFE) == 0)
- mtx_lock(&Giant);
if (error == 0) {
td->td_retval[0] = 0;
@@ -466,10 +461,6 @@ syscall(struct trapframe *frame)
break;
}
-
- if ((callp->sy_narg & SYF_MPSAFE) == 0)
- mtx_unlock(&Giant);
-
/*
* Check for misbehavior.
*/
OpenPOWER on IntegriCloud