int i ...
This commit is contained in:
@@ -119,7 +119,8 @@ static void sample_task_work(struct work_struct *work){
|
||||
vm_record.tv = ktime_get_real();
|
||||
vm_record.threshold_num = k_watch_timer->threshold_num;
|
||||
|
||||
for (int i = 0; i < vm_record.threshold_num; i++) {
|
||||
int i;
|
||||
for (i = 0; i < vm_record.threshold_num; i++) {
|
||||
kwarg = &k_watch_timer->k_watch_args[k_watch_timer->threshold_buffer[i]];
|
||||
k_w_arg2threshold(kwarg, &vm_record.threshold_record[i]);
|
||||
}
|
||||
@@ -169,7 +170,8 @@ int monitor_init(void) {
|
||||
if (ret)
|
||||
return -1;
|
||||
// init workqueue
|
||||
for (int i=0; i < MAX_TIMER_NUM; i++) {
|
||||
int i;
|
||||
for (i=0; i < MAX_TIMER_NUM; i++) {
|
||||
kernel_watch_timer *kw_timer = &kernel_wtimer_list[i];
|
||||
INIT_WORK(&kw_timer->wk, sample_task_work);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user