From 2670d520a86faa8372952207fed4ef097ff2e726 Mon Sep 17 00:00:00 2001 From: batt Date: Tue, 26 Aug 2008 16:19:09 +0000 Subject: [PATCH] Remove redundant prototypes; reformat. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1714 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/kern/proc.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bertos/kern/proc.h b/bertos/kern/proc.h index afb9639f..f8de758f 100644 --- a/bertos/kern/proc.h +++ b/bertos/kern/proc.h @@ -85,6 +85,9 @@ const char *proc_currentName(void); } #endif +/** Global preemption disable nesting counter. */ +extern int preempt_forbid_cnt; + /** * Disable preemptive task switching. * @@ -106,7 +109,6 @@ INLINE void proc_forbid(void) { #if CONFIG_KERN_PREEMPT // No need to protect against interrupts here. - extern int preempt_forbid_cnt; ++preempt_forbid_cnt; /* @@ -133,7 +135,6 @@ INLINE void proc_permit(void) MEMORY_BARRIER; /* No need to protect against interrupts here. */ - extern int preempt_forbid_cnt; --preempt_forbid_cnt; ASSERT(preempt_forbid_cnt >= 0); @@ -146,8 +147,6 @@ INLINE void proc_permit(void) #endif } -extern int preempt_forbid_cnt; - /** * Execute a block of \a CODE atomically with respect to task scheduling. */ -- 2.25.1