Skip to content

Commit

Permalink
fix_unexpected_sleep_at_init
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor-Jhong committed Dec 26, 2024
1 parent 810a230 commit 4fafa78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions meta-facebook/minerva-ag/src/platform/plat_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,6 @@ void poll_cpld_registers()
}

while (1) {
/* Sleep for the polling interval */
k_msleep(CPLD_POLLING_INTERVAL_MS);

/* Check if any status is changing */
if (is_dc_status_changing)
continue;
Expand Down Expand Up @@ -176,6 +173,9 @@ void poll_cpld_registers()
aegis_cpld_info_table[i].last_polling_value = data;
}
}

/* Sleep for the polling interval */
k_msleep(CPLD_POLLING_INTERVAL_MS);
}
}

Expand Down
1 change: 0 additions & 1 deletion meta-facebook/minerva-ag/src/platform/plat_mctp.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ void plat_mctp_init(void)
mctp_reg_msg_rx_func(p->mctp_inst, mctp_msg_recv);

mctp_start(p->mctp_inst);
k_msleep(5000);
}
}

Expand Down

0 comments on commit 4fafa78

Please sign in to comment.