diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-06-26 12:39:23 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-06-26 12:39:23 +0000 |
commit | 9eb6e49a56899f4347f96a6fbaa4bc89fd6e411c (patch) | |
tree | e7a8ec3cdf98cfb7dc1c2083f5425dd7511428ac /nuttx/arch/arm/src/stm32/stm32_pminitialize.c | |
parent | 45062eebeb8e3cca452ad08861f047106a101597 (diff) | |
download | px4-nuttx-9eb6e49a56899f4347f96a6fbaa4bc89fd6e411c.tar.gz px4-nuttx-9eb6e49a56899f4347f96a6fbaa4bc89fd6e411c.tar.bz2 px4-nuttx-9eb6e49a56899f4347f96a6fbaa4bc89fd6e411c.zip |
Simplify STM32 PM infrastructure
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4870 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/stm32/stm32_pminitialize.c')
-rw-r--r-- | nuttx/arch/arm/src/stm32/stm32_pminitialize.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_pminitialize.c b/nuttx/arch/arm/src/stm32/stm32_pminitialize.c index f065cdfc8..a1f44a7f4 100644 --- a/nuttx/arch/arm/src/stm32/stm32_pminitialize.c +++ b/nuttx/arch/arm/src/stm32/stm32_pminitialize.c @@ -58,13 +58,6 @@ * Public Data ****************************************************************************/ -/* Before any power state transition is made, the caller should hold this - * semaphore to assure that there are no concurrent, contradictory power - * state activities. - */ - -sem_t g_pmsem; - /**************************************************************************** * Private Functions ****************************************************************************/ @@ -93,12 +86,6 @@ sem_t g_pmsem; void up_pminitialize(void) { - /* Initialize the PM semaphore to assure that no more than one power-related - * action occurs at a time. - */ - - sem_init(&g_pmsem, 0, 1); - /* Then initialize the NuttX power management subsystem proper */ pm_initialize(); |