On 05/23/2016 12:27 PM, Matt Heins wrote:
I'm trying to understand the power management API and figure out whatAs of now, PM in ARC can be done using IPM (inter processor messaging)
from the x86 side. You can refer to samples/ipm to see how x86 and ARC
can communicate. When x86 side gets notified via _sys_soc_suspend() ,
it can tell ARC to put CPU in low power state. You can refer to ARC data
sheet or arch/arc/core/cpu_idle.S to see how ARC can be put to low power
states. Sending ipm message during _sys_soc_resume() would cause ARC to
come out of low power state. You would need to setup some kind of
handshaking between ARC and x86 apps.
You can probably do what the kernel event logger does - call
_sys_current_irq_key_get(). In x86, this function calls
_loapic_isr_vector_get() to get the current vector number.