1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

- machine/mutex.h -> sys/mutex.h

- Use cpu_throw() instead of cpu_switch() during cpu_exit() since we don't
  need to save our previous state.
This commit is contained in:
John Baldwin 2000-10-20 07:43:55 +00:00
parent ab4f2c187a
commit 13b0500f02
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=67360
2 changed files with 4 additions and 4 deletions

View File

@ -58,12 +58,12 @@
#include <sys/vmmeter.h>
#include <sys/kernel.h>
#include <sys/ktr.h>
#include <sys/mutex.h>
#include <sys/sysctl.h>
#include <sys/unistd.h>
#include <machine/cpu.h>
#include <machine/md_var.h>
#include <machine/mutex.h>
#ifdef SMP
#include <machine/smp.h>
#endif
@ -260,7 +260,7 @@ cpu_exit(p)
mtx_exit(&Giant, MTX_DEF | MTX_NOSWITCH);
mtx_assert(&Giant, MA_NOTOWNED);
cnt.v_swtch++;
cpu_switch();
cpu_throw();
panic("cpu_exit");
}

View File

@ -58,12 +58,12 @@
#include <sys/vmmeter.h>
#include <sys/kernel.h>
#include <sys/ktr.h>
#include <sys/mutex.h>
#include <sys/sysctl.h>
#include <sys/unistd.h>
#include <machine/cpu.h>
#include <machine/md_var.h>
#include <machine/mutex.h>
#ifdef SMP
#include <machine/smp.h>
#endif
@ -260,7 +260,7 @@ cpu_exit(p)
mtx_exit(&Giant, MTX_DEF | MTX_NOSWITCH);
mtx_assert(&Giant, MA_NOTOWNED);
cnt.v_swtch++;
cpu_switch();
cpu_throw();
panic("cpu_exit");
}