PM: Remove redundant critical section protections
authorPaul Hunt <hunt@ti.com>
Fri, 4 May 2012 00:40:19 +0000 (19:40 -0500)
committerSuman Anna <s-anna@ti.com>
Sat, 5 May 2012 16:52:54 +0000 (11:52 -0500)
commit2ea7086867d812e4ac3cc441d2ae566930129e08
tree75aeb3f46ddc15b67015205fb6c6262632c74f00
parentfca8f98721447c3585cc8c35b1533dc3122709e0
PM: Remove redundant critical section protections

Critical section protection within the IpcPower code is currently
performed by disabling both Hwi(s) and Swi(s). The code being
protected is fairly simple and does not invoke any calls (like
Swi_post or Semaphore_pend or Task_yield) that would invoke the
SYS/BIOS scheduler. The Hwi_disable and Hwi_restore combination
by itself is good enough to provide the required atomicity, so
the Swi calls have been cleaned up.

Signed-off-by: Paul Hunt <hunt@ti.com>
Signed-off-by: Juan Gutierrez <jgutierrez@ti.com>
Signed-off-by: Suman Anna <s-anna@ti.com>
src/ti/pm/IpcPower.c