projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove redundant prototypes; reformat.
[bertos.git]
/
bertos
/
kern
/
proc.h
diff --git
a/bertos/kern/proc.h
b/bertos/kern/proc.h
index afb9639f28b68a6c30decee00eae6f220dcc6977..f8de758ffeec511879400f20d750311d3b3c992b 100644
(file)
--- a/
bertos/kern/proc.h
+++ b/
bertos/kern/proc.h
@@
-85,6
+85,9
@@
const char *proc_currentName(void);
}
#endif
}
#endif
+/** Global preemption disable nesting counter. */
+extern int preempt_forbid_cnt;
+
/**
* Disable preemptive task switching.
*
/**
* Disable preemptive task switching.
*
@@
-106,7
+109,6
@@
INLINE void proc_forbid(void)
{
#if CONFIG_KERN_PREEMPT
// No need to protect against interrupts here.
{
#if CONFIG_KERN_PREEMPT
// No need to protect against interrupts here.
- extern int preempt_forbid_cnt;
++preempt_forbid_cnt;
/*
++preempt_forbid_cnt;
/*
@@
-133,7
+135,6
@@
INLINE void proc_permit(void)
MEMORY_BARRIER;
/* No need to protect against interrupts here. */
MEMORY_BARRIER;
/* No need to protect against interrupts here. */
- extern int preempt_forbid_cnt;
--preempt_forbid_cnt;
ASSERT(preempt_forbid_cnt >= 0);
--preempt_forbid_cnt;
ASSERT(preempt_forbid_cnt >= 0);
@@
-146,8
+147,6
@@
INLINE void proc_permit(void)
#endif
}
#endif
}
-extern int preempt_forbid_cnt;
-
/**
* Execute a block of \a CODE atomically with respect to task scheduling.
*/
/**
* Execute a block of \a CODE atomically with respect to task scheduling.
*/