|
TT Zephyr Platforms 19.5.0-rc1
Tenstorrent Firmware
|
#include <zephyr/kernel.h>#include "vf_curve.h"#include "throttler.h"#include "aiclk_ppm.h"#include "voltage.h"Macros | |
| #define | DVFS_MSEC 1 |
| #define | DVFS_TICKS (CONFIG_SYS_CLOCK_TICKS_PER_SEC * DVFS_MSEC / MSEC_PER_SEC) |
| #define | DVFS_ADJUSTMENT_THRESHOLD (DVFS_TICKS * 10 / 100) /* 10% of DVFS interval */ |
| #define | DVFS_ADJUSTMENT_STEP (DVFS_TICKS * 1 / 100) /* 1% of DVFS interval */ |
Functions | |
| void | DVFSChange (void) |
| static void | dvfs_work_handler (struct k_work *work) |
| static | K_WORK_DEFINE (dvfs_worker, dvfs_work_handler) |
| static void | dvfs_timer_handler (struct k_timer *timer) |
| static | K_TIMER_DEFINE (dvfs_timer, dvfs_timer_handler, NULL) |
| void | InitDVFS (void) |
| void | StartDVFSTimer (void) |
| void | AdjustDVFSTimer (void) |
Variables | |
| bool | dvfs_enabled |
| #define DVFS_ADJUSTMENT_STEP (DVFS_TICKS * 1 / 100) /* 1% of DVFS interval */ |
| #define DVFS_ADJUSTMENT_THRESHOLD (DVFS_TICKS * 10 / 100) /* 10% of DVFS interval */ |
| #define DVFS_MSEC 1 |
| #define DVFS_TICKS (CONFIG_SYS_CLOCK_TICKS_PER_SEC * DVFS_MSEC / MSEC_PER_SEC) |
| void AdjustDVFSTimer | ( | void | ) |
|
static |
|
static |
| void DVFSChange | ( | void | ) |
| void InitDVFS | ( | void | ) |
|
static |
|
static |
| void StartDVFSTimer | ( | void | ) |
| bool dvfs_enabled |