boards: posix: renames shadow variables

Renames	shadow variables found by -Wshadow.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2023-08-03 10:32:09 -07:00 committed by Fabio Baltieri
parent a952055ba3
commit 87a3f305bf
2 changed files with 10 additions and 8 deletions

View file

@ -94,14 +94,14 @@ int hw_irq_ctrl_get_highest_prio_irq(void)
return -1;
}
uint64_t irq_status = hw_irq_ctrl_get_irq_status();
uint64_t hw_irq_status = hw_irq_ctrl_get_irq_status();
int winner = -1;
int winner_prio = 256;
while (irq_status != 0U) {
int irq_nbr = find_lsb_set(irq_status) - 1;
while (hw_irq_status != 0U) {
int irq_nbr = find_lsb_set(hw_irq_status) - 1;
irq_status &= ~((uint64_t) 1 << irq_nbr);
hw_irq_status &= ~((uint64_t) 1 << irq_nbr);
if ((winner_prio > (int)irq_prio[irq_nbr])
&& (currently_running_prio > (int)irq_prio[irq_nbr])) {
winner = irq_nbr;

View file

@ -159,14 +159,16 @@ void tm_update_last_phy_sync_time(bs_time_t abs_time)
/**
* Advance the internal time values of this device
* until the HW time reaches hw_time
* until the HW time reaches time @a t.
*
* @param t Time to advance to.
*/
static void tm_sleep_until_hw_time(bs_time_t hw_time)
static void tm_sleep_until_hw_time(bs_time_t t)
{
bs_time_t next_time = TIME_NEVER;
if (hw_time != TIME_NEVER) {
next_time = hw_time + hw_time_delta;
if (t != TIME_NEVER) {
next_time = t + hw_time_delta;
}
tm_sleep_until_abs_time(next_time);
}