diff options
author | jhb <jhb@FreeBSD.org> | 2006-07-28 19:05:28 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2006-07-28 19:05:28 +0000 |
commit | c62c38439fd8a2fd4a6e5fe8d9c4bcda438e6010 (patch) | |
tree | cc5695072b3b30d9c9cd45487beb493d692b8a26 /sys/sparc64 | |
parent | 6a211b6d81725475d5c4891b35cbbe3fe7397102 (diff) | |
download | FreeBSD-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/sparc64')
-rw-r--r-- | sys/sparc64/sparc64/trap.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/sys/sparc64/sparc64/trap.c b/sys/sparc64/sparc64/trap.c index b1c0dcc..dcc30f5 100644 --- a/sys/sparc64/sparc64/trap.c +++ b/sys/sparc64/sparc64/trap.c @@ -578,13 +578,6 @@ syscall(struct trapframe *tf) CTR5(KTR_SYSC, "syscall: td=%p %s(%#lx, %#lx, %#lx)", td, syscallnames[code], argp[0], argp[1], argp[2]); - /* - * Try to run the syscall without the MP lock if the syscall - * is MP safe. - */ - if ((callp->sy_narg & SYF_MPSAFE) == 0) - mtx_lock(&Giant); - #ifdef KTRACE if (KTRPOINT(td, KTR_SYSCALL)) ktrsyscall(code, narg, argp); @@ -641,13 +634,6 @@ syscall(struct trapframe *tf) } /* - * Release Giant if we had to get it. Don't use mtx_owned(), - * we want to catch broken syscalls. - */ - if ((callp->sy_narg & SYF_MPSAFE) == 0) - mtx_unlock(&Giant); - - /* * Check for misbehavior. */ WITNESS_WARN(WARN_PANIC, NULL, "System call %s returning", |