Skip to content

Commit

Permalink
build/configs: Set CONFIG_PM_SLEEP_ENTRY_WAIT_MS to 10
Browse files Browse the repository at this point in the history
This commit rename CONFIG_PM_MIN_SLEEP_TIME to CONFIG_PM_SLEEP_ENTRY_WAIT_MS. It also sets CONFIG_PM_SLEEP_ENTRY_WAIT_MS to 10. Now board will only go to sleep if application does not request CPU for coming CONFIG_PM_SLEEP_ENTRY_WAIT_MS time.
  • Loading branch information
gSahitya-samsung authored and kishore-sn committed Jul 23, 2024
1 parent 3a1eb32 commit 31ff602
Show file tree
Hide file tree
Showing 13 changed files with 6 additions and 41 deletions.
1 change: 0 additions & 1 deletion build/configs/artik053/STDK/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,6 @@ CONFIG_SCHED_LPWORKSTACKSIZE=2048
#
CONFIG_PM=y
# CONFIG_PM_METRICS is not set
CONFIG_PM_MIN_WAKEUP_TIME=100
CONFIG_PM_NDOMAINS=32

#
Expand Down
1 change: 0 additions & 1 deletion build/configs/artik053/iotivity/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,6 @@ CONFIG_SCHED_LPWORKSTACKSIZE=2048
#
CONFIG_PM=y
# CONFIG_PM_METRICS is not set
CONFIG_PM_MIN_WAKEUP_TIME=100
CONFIG_PM_NDOMAINS=32

#
Expand Down
1 change: 0 additions & 1 deletion build/configs/artik053/kernel_sample/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,6 @@ CONFIG_SCHED_LPWORKSTACKSIZE=2048
#
CONFIG_PM=y
# CONFIG_PM_METRICS is not set
CONFIG_PM_MIN_WAKEUP_TIME=100
CONFIG_PM_NDOMAINS=32

#
Expand Down
3 changes: 1 addition & 2 deletions build/configs/rtl8730e/loadable_apps/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1104,12 +1104,11 @@ CONFIG_DEBUG_WORKQUEUE=y
#
CONFIG_PM=y
# CONFIG_PM_METRICS is not set
CONFIG_PM_MIN_WAKEUP_TIME=100
CONFIG_PM_NDOMAINS=32
# CONFIG_PM_DVFS is not set
CONFIG_PM_TICKSUPPRESS=y
CONFIG_PM_TIMEDWAKEUP=y
CONFIG_PM_MIN_SLEEP_TIME=100
CONFIG_PM_SLEEP_ENTRY_WAIT_MS=10
CONFIG_PM_DOMAIN_NAME_SIZE=32

#
Expand Down
3 changes: 1 addition & 2 deletions build/configs/rtl8730e/loadable_ext/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1256,12 +1256,11 @@ CONFIG_DEBUG_WORKQUEUE=y
#
CONFIG_PM=y
# CONFIG_PM_METRICS is not set
CONFIG_PM_MIN_WAKEUP_TIME=100
CONFIG_PM_NDOMAINS=32
# CONFIG_PM_DVFS is not set
CONFIG_PM_TICKSUPPRESS=y
CONFIG_PM_TIMEDWAKEUP=y
CONFIG_PM_MIN_SLEEP_TIME=100
CONFIG_PM_SLEEP_ENTRY_WAIT_MS=10
CONFIG_PM_DOMAIN_NAME_SIZE=32

#
Expand Down
1 change: 0 additions & 1 deletion build/configs/sidk_s5jt200/kernel_sample/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,6 @@ CONFIG_SCHED_HPWORKSTACKSIZE=2048
#
CONFIG_PM=y
# CONFIG_PM_METRICS is not set
CONFIG_PM_MIN_WAKEUP_TIME=100
CONFIG_PM_NDOMAINS=32

#
Expand Down
1 change: 0 additions & 1 deletion build/configs/sidk_s5jt200/sidk_tash_aws/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,6 @@ CONFIG_SCHED_LPWORKSTACKSIZE=2048
#
CONFIG_PM=y
# CONFIG_PM_METRICS is not set
CONFIG_PM_MIN_WAKEUP_TIME=100
CONFIG_PM_NDOMAINS=32

#
Expand Down
1 change: 0 additions & 1 deletion build/configs/sidk_s5jt200/sidk_tash_wlan/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,6 @@ CONFIG_SCHED_LPWORKSTACKSIZE=2048
#
CONFIG_PM=y
# CONFIG_PM_METRICS is not set
CONFIG_PM_MIN_WAKEUP_TIME=100
CONFIG_PM_NDOMAINS=32

#
Expand Down
1 change: 0 additions & 1 deletion build/configs/sidk_s5jt200/tc/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,6 @@ CONFIG_SCHED_LPWORKSTACKSIZE=2048
#
CONFIG_PM=y
# CONFIG_PM_METRICS is not set
CONFIG_PM_MIN_WAKEUP_TIME=100
CONFIG_PM_NDOMAINS=32

#
Expand Down
1 change: 0 additions & 1 deletion build/configs/stm32l4r9ai-disco/pm/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,6 @@ CONFIG_KMM_NHEAPS=1
#
CONFIG_PM=y
# CONFIG_PM_METRICS is not set
CONFIG_PM_MIN_WAKEUP_TIME=100
CONFIG_PM_NDOMAINS=32

#
Expand Down
14 changes: 0 additions & 14 deletions docs/TinyAra_Config_Variables.html
Original file line number Diff line number Diff line change
Expand Up @@ -2621,7 +2621,6 @@ <h1>Table of Contents</h1>
<li><a href="#CONFIG_PM">1.13.1 <code>CONFIG_PM</code>: Power management (PM) driver interfaces</a></li>
<li><a href="#CONFIG_DEBUG_PM">1.13.2 <code>CONFIG_DEBUG_PM</code>: Power Management Debug Features</a></li>
<li><a href="#CONFIG_PM_METRICS">1.13.5 <code>CONFIG_PM_METRICS</code>: Power management (PM) metrics</a></li>
<li><a href="#CONFIG_PM_MIN_WAKEUP_TIME">1.13.7 <code>CONFIG_PM_MIN_WAKEUP_TIME</code>: PM time slice (msec)</a></li>
<li><a href="#CONFIG_PM_NDOMAINS">1.13.8 <code>CONFIG_PM_NDOMAINS</code>: Number of PM activity domains</a></li>
</ul>
<li><a name="menu_138_toc"><a href="#menu_138">1.14 Menu: Debug Options</a></a></li>
Expand Down Expand Up @@ -32970,19 +32969,6 @@ <h3><a name="CONFIG_PM_METRICS">1.13.5 <code>CONFIG_PM_METRICS</code>: Power man
</li>
<li><i>Dependencies</i>: <a href="#CONFIG_PM"><code>CONFIG_PM</code></a></li>
<li><i>Kconfig file</i>: <code>./pm/Kconfig</code>
<h3><a name="CONFIG_PM_MIN_WAKEUP_TIME">1.13.7 <code>CONFIG_PM_MIN_WAKEUP_TIME</code>: PM time slice (msec)</a></h3>
<ul>
<li><i>Type</i>: Integer</li>
<li>
<i>Default</i>: 100
</li>
<li><i>Dependencies</i>: <a href="#CONFIG_PM"><code>CONFIG_PM</code></a></li>
<li><i>Kconfig file</i>: <code>./pm/Kconfig</code>
<p>
The power management module collects activity counts in time slices. At the end of the time slice, the count accumulated during that interval is applied to an averaging algorithm to determine the activity level.</p>
<p>
CONFIG_PM_MIN_WAKEUP_TIME provides the duration of that time slice in milliseconds. Default: 100 Milliseconds</p>
</ul>
<h3><a name="CONFIG_PM_NDOMAINS">1.13.8 <code>CONFIG_PM_NDOMAINS</code>: Number of PM activity domains</a></h3>
<ul>
<li><i>Type</i>: Integer</li>
Expand Down
1 change: 0 additions & 1 deletion external/iotjs/config/tizenrt/artik05x/configs/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,6 @@ CONFIG_MM_REGIONS=1
#
CONFIG_PM=y
# CONFIG_PM_METRICS is not set
CONFIG_PM_MIN_WAKEUP_TIME=100
CONFIG_PM_NDOMAINS=32

#
Expand Down
18 changes: 4 additions & 14 deletions os/pm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,6 @@ menuconfig PM_METRICS
---help---
Power management's metrics

config PM_MIN_WAKEUP_TIME
int "Minimum Wakeup Time (in msec)"
default 100
---help---
The power management module make board sleep & wakeup. After board wakeup,
it is required to perform post sleep processing and restore the CPU state.
During CPU restoration the board should not sleep again, for that we keep
board waking up for minimum CONFIG_PM_MIN_WAKEUP_TIME time (in msec). It's value should
be greater than 0.

config PM_NDOMAINS
int "Number of PM activity domains"
default 32
Expand Down Expand Up @@ -69,11 +59,11 @@ config PM_TIMEDWAKEUP

if PM_TIMEDWAKEUP

config PM_MIN_SLEEP_TIME
int "PM MIN SLEEP enter time"
default 0
config PM_SLEEP_ENTRY_WAIT_MS
int "Sleep Entry Wait Threshold (in msec)"
default 10
---help---
This value is the minimum duration of system sleep. System should not go to sleep
This value represents the system sleep wait threshold. System should not go to sleep
if the app request it to sleep below this value. Because then it might not be very
power efficient.
Also Note that, this value is in millisecond.
Expand Down

0 comments on commit 31ff602

Please sign in to comment.