diff --git a/arch/arm/src/efm32/efm32_idle.c b/arch/arm/src/efm32/efm32_idle.c index 4caad01374..62d4e6315b 100644 --- a/arch/arm/src/efm32/efm32_idle.c +++ b/arch/arm/src/efm32/efm32_idle.c @@ -100,7 +100,7 @@ static void up_idlepm(void) /* Decide, which power saving level can be obtained */ - newstate = pm_checkstate(); + newstate = pm_checkstate(PM_IDLE_DOMAIN); /* Check for state changes */ diff --git a/arch/arm/src/kl/kl_idle.c b/arch/arm/src/kl/kl_idle.c index b650057c6d..e711b39e3c 100644 --- a/arch/arm/src/kl/kl_idle.c +++ b/arch/arm/src/kl/kl_idle.c @@ -93,7 +93,7 @@ static void up_idlepm(void) /* Decide, which power saving level can be obtained */ - newstate = pm_checkstate(); + newstate = pm_checkstate(PM_IDLE_DOMAIN); /* Check for state changes */ diff --git a/arch/arm/src/lpc43xx/lpc43_idle.c b/arch/arm/src/lpc43xx/lpc43_idle.c index edd53852e4..62f665495e 100644 --- a/arch/arm/src/lpc43xx/lpc43_idle.c +++ b/arch/arm/src/lpc43xx/lpc43_idle.c @@ -88,7 +88,7 @@ static void up_idlepm(void) /* Decide, which power saving level can be obtained */ - newstate = pm_checkstate(); + newstate = pm_checkstate(PM_IDLE_DOMAIN); /* Check for state changes */ diff --git a/arch/arm/src/nuc1xx/nuc_idle.c b/arch/arm/src/nuc1xx/nuc_idle.c index 7bd396f145..9dd225313f 100644 --- a/arch/arm/src/nuc1xx/nuc_idle.c +++ b/arch/arm/src/nuc1xx/nuc_idle.c @@ -89,7 +89,7 @@ static void up_idlepm(void) /* Decide, which power saving level can be obtained */ - newstate = pm_checkstate(); + newstate = pm_checkstate(PM_IDLE_DOMAIN); /* Check for state changes */ diff --git a/arch/arm/src/samdl/sam_idle.c b/arch/arm/src/samdl/sam_idle.c index 5f8593c5e0..be58de12be 100644 --- a/arch/arm/src/samdl/sam_idle.c +++ b/arch/arm/src/samdl/sam_idle.c @@ -89,7 +89,7 @@ static void up_idlepm(void) /* Decide, which power saving level can be obtained */ - newstate = pm_checkstate(); + newstate = pm_checkstate(PM_IDLE_DOMAIN); /* Check for state changes */ diff --git a/arch/arm/src/stm32/stm32_idle.c b/arch/arm/src/stm32/stm32_idle.c index c26ea8b494..0786f2ac99 100644 --- a/arch/arm/src/stm32/stm32_idle.c +++ b/arch/arm/src/stm32/stm32_idle.c @@ -91,7 +91,7 @@ static void up_idlepm(void) /* Decide, which power saving level can be obtained */ - newstate = pm_checkstate(); + newstate = pm_checkstate(PM_IDLE_DOMAIN); /* Check for state changes */ diff --git a/arch/arm/src/stm32/stm32_serial.c b/arch/arm/src/stm32/stm32_serial.c index c7cef9debf..2e11d52609 100644 --- a/arch/arm/src/stm32/stm32_serial.c +++ b/arch/arm/src/stm32/stm32_serial.c @@ -252,6 +252,7 @@ #if defined(CONFIG_PM) && !defined(CONFIG_PM_SERIAL_ACTIVITY) # define CONFIG_PM_SERIAL_ACTIVITY 10 +# define PM_IDLE_DOMAIN 0 /* Revisit */ #endif #ifdef USE_SERIALDRIVER @@ -1781,7 +1782,7 @@ static int up_interrupt_common(struct up_dev_s *priv) /* Report serial activity to the power management logic */ #if defined(CONFIG_PM) && CONFIG_PM_SERIAL_ACTIVITY > 0 - pm_activity(CONFIG_PM_SERIAL_ACTIVITY); + pm_activity(PM_IDLE_DOMAIN, CONFIG_PM_SERIAL_ACTIVITY); #endif /* Loop until there are no characters to be transferred or, diff --git a/arch/arm/src/stm32f7/stm32_serial.c b/arch/arm/src/stm32f7/stm32_serial.c index 497781889d..d62b78fd6e 100644 --- a/arch/arm/src/stm32f7/stm32_serial.c +++ b/arch/arm/src/stm32f7/stm32_serial.c @@ -205,6 +205,7 @@ #if defined(CONFIG_PM) && !defined(CONFIG_PM_SERIAL_ACTIVITY) # define CONFIG_PM_SERIAL_ACTIVITY 10 +# define PM_IDLE_DOMAIN 0 /* Revisit */ #endif #ifdef USE_SERIALDRIVER @@ -1713,7 +1714,7 @@ static int up_interrupt_common(struct up_dev_s *priv) /* Report serial activity to the power management logic */ #if defined(CONFIG_PM) && CONFIG_PM_SERIAL_ACTIVITY > 0 - pm_activity(CONFIG_PM_SERIAL_ACTIVITY); + pm_activity(PM_IDLE_DOMAIN, CONFIG_PM_SERIAL_ACTIVITY); #endif /* Loop until there are no characters to be transferred or, diff --git a/arch/arm/src/stm32l4/stm32l4_idle.c b/arch/arm/src/stm32l4/stm32l4_idle.c index e8ee411cdc..7cf0734c22 100644 --- a/arch/arm/src/stm32l4/stm32l4_idle.c +++ b/arch/arm/src/stm32l4/stm32l4_idle.c @@ -91,7 +91,7 @@ static void up_idlepm(void) /* Decide, which power saving level can be obtained */ - newstate = pm_checkstate(); + newstate = pm_checkstate(PM_IDLE_DOMAIN); /* Check for state changes */ diff --git a/arch/arm/src/stm32l4/stm32l4_serial.c b/arch/arm/src/stm32l4/stm32l4_serial.c index 5918ff1a2f..68e9e75245 100644 --- a/arch/arm/src/stm32l4/stm32l4_serial.c +++ b/arch/arm/src/stm32l4/stm32l4_serial.c @@ -205,6 +205,7 @@ #if defined(CONFIG_PM) && !defined(CONFIG_PM_SERIAL_ACTIVITY) # define CONFIG_PM_SERIAL_ACTIVITY 10 +# define PM_IDLE_DOMAIN 0 /* Revisit */ #endif #ifdef USE_SERIALDRIVER @@ -1456,7 +1457,7 @@ static int up_interrupt_common(struct up_dev_s *priv) /* Report serial activity to the power management logic */ #if defined(CONFIG_PM) && CONFIG_PM_SERIAL_ACTIVITY > 0 - pm_activity(CONFIG_PM_SERIAL_ACTIVITY); + pm_activity(PM_IDLE_DOMAIN, CONFIG_PM_SERIAL_ACTIVITY); #endif /* Loop until there are no characters to be transferred or, diff --git a/arch/sim/src/up_idle.c b/arch/sim/src/up_idle.c index 2e80a26562..2e218b319d 100644 --- a/arch/sim/src/up_idle.c +++ b/arch/sim/src/up_idle.c @@ -155,7 +155,7 @@ void up_idle(void) static enum pm_state_e state = PM_NORMAL; enum pm_state_e newstate; - newstate = pm_checkstate(); + newstate = pm_checkstate(PM_IDLE_DOMAIN); if (newstate != state) { if (pm_changestate(PM_IDLE_DOMAIN, newstate) == OK)