mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Change cpu_critical_enter/exit to intr_disable/restore.
This commit is contained in:
parent
7a43a96ab0
commit
77b51ddfcd
1 changed files with 2 additions and 2 deletions
|
|
@ -100,9 +100,9 @@ _mcount: \n\
|
|||
* The following two macros do splhigh and splx respectively.
|
||||
*/
|
||||
#define MCOUNT_ENTER(s) \n\
|
||||
_c = cpu_critical_enter()
|
||||
_c = intr_disable()
|
||||
#define MCOUNT_EXIT(s) \n\
|
||||
cpu_critical_exit(_c)
|
||||
intr_restore(_c)
|
||||
#define MCOUNT_DECL(s) critical_t c;
|
||||
#ifdef GUPROF
|
||||
struct gmonparam;
|
||||
|
|
|
|||
Loading…
Reference in a new issue