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:
parent
ab4f2c187a
commit
13b0500f02
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=67360
@ -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");
|
||||
}
|
||||
|
||||
|
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user