add delay

This commit is contained in:
zy
2023-12-13 03:17:52 -05:00
parent 69bf4c8c69
commit cdde5566bf
9 changed files with 151 additions and 37 deletions

View File

@@ -35,10 +35,11 @@ typedef struct {
unsigned sentinel; // sentinel
kernel_watch_arg
k_watch_args[TIMER_MAX_WATCH_NUM]; // all watched kernel_watch_arg
int threshold_num; // all over threshold number,
int threshold_over_count; // all over threshold number,
// 0 means no handle needed
int threshold_buffer[TIMER_MAX_WATCH_NUM]; //
struct work_struct wk; // for handle
unsigned long long tv; // time
} kernel_watch_timer;
// Global variable