Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions MAINTAINERS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -855,8 +855,6 @@ CPU Frequency Scaling:
- seankyer
files:
- include/zephyr/cpu_freq/
- include/zephyr/cpu_load/
- subsys/cpu_load/
- subsys/cpu_freq/
- dts/bindings/p_state/
labels:
Expand Down
2 changes: 1 addition & 1 deletion doc/services/cpu_freq/policies/on_demand.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ On-Demand CPU Frequency Scaling Policy
######################################

The On-Demand policy evaluates the current CPU load using the
:ref:`CPU Load subsystem <cpu_load_subsys>`, and compares it to the trigger threshold defined by the
:ref:`CPU Load metric <cpu_load_metric>`, and compares it to the trigger threshold defined by the
SoC P-state definition.

The On-Demand policy will iterate through the defined P-states and select the first P-state of which
Expand Down
2 changes: 1 addition & 1 deletion doc/services/cpu_load/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.. _cpu_load_subsys:
.. _cpu_load_metric:

CPU Load
########
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions lib/os/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ zephyr_syscall_header_ifdef(CONFIG_FDTABLE

zephyr_sources_ifdef(CONFIG_CBPRINTF_COMPLETE cbprintf_complete.c)
zephyr_sources_ifdef(CONFIG_CBPRINTF_NANO cbprintf_nano.c)
add_subdirectory_ifdef(CONFIG_CPU_LOAD_METRIC cpu_load)

if(NOT CONFIG_PICOLIBC)
zephyr_sources(cbprintf.c)
Expand Down
1 change: 1 addition & 0 deletions lib/os/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,6 @@ config POWEROFF

rsource "Kconfig.cbprintf"
rsource "zvfs/Kconfig"
rsource "cpu_load/Kconfig"

endmenu
File renamed without changes.
4 changes: 2 additions & 2 deletions subsys/cpu_load/Kconfig → lib/os/cpu_load/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
# SPDX-License-Identifier: Apache-2.0

menuconfig CPU_LOAD_METRIC
bool "CPU Load Subsystem"
bool "CPU Load Metric"
select EXPERIMENTAL
select THREAD_RUNTIME_STATS
select SCHED_THREAD_USAGE
select SCHED_THREAD_USAGE_ALL
select SCHED_THREAD_USAGE_AUTO_ENABLE
help
CPU Load subsystem
Tracking of CPU load statistics.

if CPU_LOAD_METRIC

Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion subsys/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ add_subdirectory_ifdef(CONFIG_BINDESC bindesc)
add_subdirectory_ifdef(CONFIG_BT bluetooth)
add_subdirectory_ifdef(CONFIG_CONSOLE_SUBSYS console)
add_subdirectory_ifdef(CONFIG_CPU_FREQ cpu_freq)
add_subdirectory_ifdef(CONFIG_CPU_LOAD_METRIC cpu_load)
add_subdirectory_ifdef(CONFIG_CRC crc)
add_subdirectory_ifdef(CONFIG_DAP dap)
add_subdirectory_ifdef(CONFIG_DEMAND_PAGING demand_paging)
Expand Down
1 change: 0 additions & 1 deletion subsys/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ source "subsys/bluetooth/Kconfig"
source "subsys/canbus/Kconfig"
source "subsys/console/Kconfig"
source "subsys/cpu_freq/Kconfig"
source "subsys/cpu_load/Kconfig"
source "subsys/crc/Kconfig"
source "subsys/dap/Kconfig"
source "subsys/debug/Kconfig"
Expand Down
2 changes: 1 addition & 1 deletion subsys/cpu_freq/policies/on_demand/on_demand.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <zephyr/logging/log.h>
#include <zephyr/cpu_freq/policy.h>
#include <zephyr/cpu_freq/cpu_freq.h>
#include <zephyr/cpu_load/cpu_load.h>
#include <zephyr/sys/cpu_load.h>

LOG_MODULE_REGISTER(cpu_freq_policy_on_demand, CONFIG_CPU_FREQ_LOG_LEVEL);

Expand Down