8#ifndef ZEPHYR_INCLUDE_SYS_CPU_LOAD_H_
9#define ZEPHYR_INCLUDE_SYS_CPU_LOAD_H_
40#define CPU_LOAD_PERMILLE_TO_PERCENT(permille) ((permille) / 10)
#define CPU_LOAD_PERMILLE_TO_PERCENT(permille)
Convert a per mille CPU load value to whole percent.
Definition cpu_load.h:40
void cpu_load_on_enter_idle(void)
Hook called on entering CPU idle.
static int cpu_load_metric_get(int cpu_id)
Get CPU load as a percentage for a specific CPU.
Definition cpu_load.h:110
void(* cpu_load_cb_t)(uint8_t percent)
Definition cpu_load.h:87
void cpu_load_on_exit_idle(void)
Hook called on exiting CPU idle.
int cpu_load_get_cpu(unsigned int cpu_id, bool reset)
Get CPU load for a specific CPU.
void cpu_load_log_control(bool enable)
Control periodic CPU load report.
int cpu_load_cb_reg(cpu_load_cb_t cb, uint8_t threshold_percent)
Optional registration of callback when load is greater or equal to the threshold.
int cpu_load_get(bool reset)
Get CPU load for the current CPU.
__UINT8_TYPE__ uint8_t
Definition stdint.h:88